Also adds src path when running from script.
This commit is contained in:
1 parent
34486e06a5
commit
079d65ec59
1 file changed
+2
-1
+2
-1
@@ -33,8 +33,9 @@ except ImportError:
|
|||||||
print "Registering libraries..."
|
print "Registering libraries..."
|
||||||
# Insert local directories into path
|
# Insert local directories into path
|
||||||
lib_path = os.path.join(os.path.abspath(cwd), 'libs')
|
lib_path = os.path.join(os.path.abspath(cwd), 'libs')
|
||||||
sys.path.insert(0, lib_path)
|
|
||||||
src_path = os.path.join(os.path.abspath(cwd), 'src')
|
src_path = os.path.join(os.path.abspath(cwd), 'src')
|
||||||
|
sys.path.insert(0, lib_path)
|
||||||
|
sys.path.insert(0, src_path)
|
||||||
print "Passing execution to couchpotato..."
|
print "Passing execution to couchpotato..."
|
||||||
try:
|
try:
|
||||||
from couchpotato import cli
|
from couchpotato import cli
|
||||||
|
|||||||
Reference in new issue
Block a user