Import files are now searched first from vendor folder and not from python folder

This should solve issues if different versions of packages are installed on the machine (like in #61)
pull/85/head
OzzieIsaacs 8 years ago
parent 753a0a82a1
commit cd792d0ca7

1
.gitignore vendored

@ -18,3 +18,4 @@ eggs/
*.log
config.ini
.idea/

@ -5,7 +5,7 @@ import sys
base_path = os.path.dirname(os.path.abspath(__file__))
# Insert local directories into path
sys.path.append(os.path.join(base_path, 'vendor'))
sys.path.insert(0,os.path.join(base_path, 'vendor'))
from cps import web
from cps import config

Loading…
Cancel
Save