Skip to content

Instantly share code, notes, and snippets.

@BartlomiejSkwira
Created April 26, 2019 10:50
Show Gist options
  • Save BartlomiejSkwira/a8d68673f6583d0f96d6155ce715b65c to your computer and use it in GitHub Desktop.
Save BartlomiejSkwira/a8d68673f6583d0f96d6155ce715b65c to your computer and use it in GitHub Desktop.
Python path operations #python
#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