Last active
August 11, 2017 00:47
-
-
Save ksomemo/cea8c178f9448de44958 to your computer and use it in GitHub Desktop.
Python Append library path and Absolute path
This file contains hidden or 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
import os | |
import sys | |
# library path | |
# Absolute path | |
sys.path.append(os.path.abspath(os.path.dirname(__file__) + '/..')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment