Use sys.executable rather than 'python' to launch the application.

This commit is contained in:
Fabio Manganiello 2023-08-19 12:40:57 +02:00
parent 0a5fc40dc5
commit e463a52435
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -32,7 +32,7 @@ class ApplicationProcess(ControllableProcess):
self.logger.info('Starting application...') self.logger.info('Starting application...')
with subprocess.Popen( with subprocess.Popen(
['python', '-m', 'platypush.app', *self.args], [sys.executable, '-m', 'platypush.app', *self.args],
stdin=sys.stdin, stdin=sys.stdin,
stdout=sys.stdout, stdout=sys.stdout,
stderr=sys.stderr, stderr=sys.stderr,