fix ftrack server launch

This commit is contained in:
iLLiCiTiT 2021-01-14 17:00:12 +01:00
parent 47b4385947
commit 066bb45049

View file

@ -57,9 +57,15 @@ class SocketThread(threading.Thread):
env = os.environ.copy()
env["PYPE_PROCESS_MONGO_ID"] = str(Logger.mongo_process_id)
executable_args = [
sys.executable
]
if getattr(sys, "frozen", False):
executable_args.append("run")
self.subproc = subprocess.Popen(
[
sys.executable,
*executable_args,
self.filepath,
*self.additional_args,
str(self.port)