mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix ftrack server launch
This commit is contained in:
parent
47b4385947
commit
066bb45049
1 changed files with 7 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue