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)
This commit is contained in:
OzzieIsaacs 2016-10-04 18:48:26 +02:00
parent 753a0a82a1
commit cd792d0ca7
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

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

2
cps.py
View File

@ -5,7 +5,7 @@ import sys
base_path = os.path.dirname(os.path.abspath(__file__)) base_path = os.path.dirname(os.path.abspath(__file__))
# Insert local directories into path # 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 web
from cps import config from cps import config