Just use basename of __file__ when restarting. fix #982
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ class Loader(object):
|
|||||||
logging.shutdown()
|
logging.shutdown()
|
||||||
time.sleep(3)
|
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)
|
subprocess.Popen(args)
|
||||||
except:
|
except:
|
||||||
self.log.critical(traceback.format_exc())
|
self.log.critical(traceback.format_exc())
|
||||||
|
|||||||
Reference in New Issue
Block a user