We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f071fd7 commit e41d157Copy full SHA for e41d157
aws_gate/utils.py
@@ -125,11 +125,11 @@ def deferred_signals(signal_list=None):
125
def execute(cmd, args, **kwargs):
126
ret, result = None, None
127
128
- env = DEFAULT_GATE_BIN_PATH + os.pathsep + os.environ["PATH"]
129
-
+ env_path = DEFAULT_GATE_BIN_PATH + os.pathsep + os.environ["PATH"]
+ env = os.environ.copy().update({"PATH": env_path})
130
try:
131
logger.debug('Executing "%s"', " ".join([cmd] + args))
132
- result = subprocess.run([cmd] + args, env={"PATH": env}, check=True, **kwargs)
+ result = subprocess.run([cmd] + args, env=env, check=True, **kwargs)
133
except subprocess.CalledProcessError as e:
134
logger.error(
135
'Command "%s" exited with %s', " ".join([cmd] + args), e.returncode
0 commit comments