diff --git a/plottr/apps/appmanager.py b/plottr/apps/appmanager.py index 5e283a4b..a62a31ee 100644 --- a/plottr/apps/appmanager.py +++ b/plottr/apps/appmanager.py @@ -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 @@ -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)}')