Created
April 26, 2019 10:50
-
-
Save BartlomiejSkwira/a8d68673f6583d0f96d6155ce715b65c to your computer and use it in GitHub Desktop.
Python path operations #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#get one level up dierctory to current like: '../' | |
from pathlib import Path | |
Path.cwd().parents[0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment