Also adds src path when running from script.

This commit is contained in:
alshain
2011-02-07 23:40:02 +01:00
parent 34486e06a5
commit 079d65ec59
+2 -1
View File
@@ -33,8 +33,9 @@ except ImportError:
print "Registering libraries..."
# Insert local directories into path
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')
sys.path.insert(0, lib_path)
sys.path.insert(0, src_path)
print "Passing execution to couchpotato..."
try:
from couchpotato import cli