Skip to content

Commit

Permalink
Merge pull request #368 from qipe-nlab/use-same-python-executable
Browse files Browse the repository at this point in the history
Launch a new app using the same python executable
  • Loading branch information
jenshnielsen committed Feb 8, 2023
2 parents f062b10 + 1ee2294 commit 02122a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plottr/apps/appmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
will result in the app not opening without an error warning.
"""

import sys
import zmq
from pathlib import Path
from typing import Dict, Union, Any, Callable, Tuple, Optional
Expand Down Expand Up @@ -352,7 +353,7 @@ def launchApp(self, Id: IdType, module: str, func: str, *args: Any) -> bool:

fullArgs = [str(Path(plottrPath).joinpath('apps', 'apprunner.py')), str(port), module, func] + list(args)
process = QtCore.QProcess()
process.start('python', fullArgs)
process.start(sys.executable, fullArgs)
process.waitForStarted(100)
socket = self.context.socket(zmq.REQ)
socket.connect(f'tcp://{self.address}:{str(port)}')
Expand Down

0 comments on commit 02122a0

Please sign in to comment.