Merge pull request #1757 from pypeclub/feature/env_in_application_executable

Application executables with environment variables
This commit is contained in:
Jakub Trllo 2021-06-24 17:06:56 +02:00 committed by GitHub
commit 944a347ff8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -460,6 +460,12 @@ class ApplicationExecutable:
if os.path.exists(_executable):
executable = _executable
# Try to format executable with environments
try:
executable = executable.format(**os.environ)
except Exception:
pass
self.executable_path = executable
def __str__(self):