Skip to content

Instantly share code, notes, and snippets.

@bckim92
Created April 5, 2016 11:32
Show Gist options
  • Save bckim92/560edb5edc9dbe5fb01e2085adafbb29 to your computer and use it in GitHub Desktop.
Save bckim92/560edb5edc9dbe5fb01e2085adafbb29 to your computer and use it in GitHub Desktop.
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