Advertisement
johnlockwood

add dir to PYTHON_PATH in webapp2 main.py

Nov 20th, 2012
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. # Add lib to path.
  2. libs_dir = os.path.join(os.path.dirname(__file__), 'lib')
  3. if libs_dir not in sys.path:
  4. logging.debug('Adding lib to path.')
  5. sys.path.insert(0, libs_dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement