Browse Source

Also adds src path when running from script.

pull/1/merge
alshain 14 years ago
parent
commit
079d65ec59
  1. 3
      CouchPotato.py

3
CouchPotato.py

@ -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

Loading…
Cancel
Save