From 079d65ec59e2b5d267137fe5980d06be4cc48aa9 Mon Sep 17 00:00:00 2001 From: alshain Date: Mon, 7 Feb 2011 23:40:02 +0100 Subject: [PATCH] Also adds src path when running from script. --- CouchPotato.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CouchPotato.py b/CouchPotato.py index df71942..fdfcedf 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -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