Skip to content

Instantly share code, notes, and snippets.

@agonzalezro
Created July 22, 2013 16:41
Show Gist options
  • Save agonzalezro/6055401 to your computer and use it in GitHub Desktop.
Save agonzalezro/6055401 to your computer and use it in GitHub Desktop.
file path
import os
from unipath import Path
import pdb; pdb.set_trace()
print os.path.join(Path(__file__).ancestor(0), 'xxx')
@agonzalezro
Copy link
Author

Better ways to get parent paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment