Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import sys
- import logging
- # Add lib to path.
- libs_dirs = [os.path.join(os.path.dirname(__file__), 'lib'),
- os.path.join(os.path.dirname(__file__), 'libs')]
- for libs_dir in libs_dirs:
- if libs_dir not in sys.path:
- logging.debug('Adding lib to path.')
- sys.path.insert(0, libs_dir)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement