From e463a52435ae79967384804de0f111e19da6649e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 19 Aug 2023 12:40:57 +0200 Subject: [PATCH] Use `sys.executable` rather than `'python'` to launch the application. --- platypush/runner/_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/runner/_app.py b/platypush/runner/_app.py index 6ff9207b..718780e7 100644 --- a/platypush/runner/_app.py +++ b/platypush/runner/_app.py @@ -32,7 +32,7 @@ class ApplicationProcess(ControllableProcess): self.logger.info('Starting application...') with subprocess.Popen( - ['python', '-m', 'platypush.app', *self.args], + [sys.executable, '-m', 'platypush.app', *self.args], stdin=sys.stdin, stdout=sys.stdout, stderr=sys.stderr,