try to format executable path with environments

This commit is contained in:
iLLiCiTiT 2021-06-24 16:28:08 +02:00
parent cb76da2382
commit a31524b75c

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):