Created
April 5, 2016 11:32
-
-
Save bckim92/560edb5edc9dbe5fb01e2085adafbb29 to your computer and use it in GitHub Desktop.
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
import sys | |
import os.path as osp | |
def add_path(path): | |
if path not in sys.path: | |
sys.path.insert(0, path) | |
sample_path = 'foo/bar' | |
add_path(sample_path) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment