Just use basename of __file__ when restarting. fix #982

This commit is contained in:
Ruud
2012-10-29 16:32:35 +01:00
parent 2c9af74f7f
commit c4adab69cb
+1 -1
View File
@@ -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())