Skip to content

Instantly share code, notes, and snippets.

@allanbatista
Created February 27, 2018 16:27
Show Gist options
  • Save allanbatista/f5423f5bdff9163a252e1ccfe2d12ba4 to your computer and use it in GitHub Desktop.
Save allanbatista/f5423f5bdff9163a252e1ccfe2d12ba4 to your computer and use it in GitHub Desktop.
python path absolute and relative path
import os
path = os.path.abspath(os.path.join(os.path.dirname(__file__),"..", "marvin_python_toolbox"))
print(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment