diff --git a/CouchPotato.py b/CouchPotato.py index b1620c0c..c36757fc 100755 --- a/CouchPotato.py +++ b/CouchPotato.py @@ -100,7 +100,7 @@ class Loader(object): logging.shutdown() time.sleep(3) - args = [sys.executable] + [os.path.join(base_path, __file__)] + sys.argv[1:] + args = [sys.executable] + [os.path.join(base_path, os.path.basename(__file__))] + sys.argv[1:] subprocess.Popen(args) except: self.log.critical(traceback.format_exc())