mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
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:
parent
753a0a82a1
commit
cd792d0ca7
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ eggs/
|
|||||||
*.log
|
*.log
|
||||||
config.ini
|
config.ini
|
||||||
|
|
||||||
|
.idea/
|
||||||
|
2
cps.py
2
cps.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user