From cd792d0ca71ee09288ac4491e257808e7d13f71a Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Tue, 4 Oct 2016 18:48:26 +0200 Subject: [PATCH] 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) --- .gitignore | 1 + cps.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 932c1688..5678d4c4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ eggs/ *.log config.ini +.idea/ diff --git a/cps.py b/cps.py index ff7a0fce..91b645fe 100755 --- a/cps.py +++ b/cps.py @@ -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