Skip to content

Commit

Permalink
[FIX] Use os.environ instead of os.putenv to set environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloEForgeFlow committed Mar 8, 2023
1 parent 7399a91 commit a009db7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dup
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _set_env(index):
for target_env_raw_name in target_environ_raw_names:
env_value = os.getenv(target_env_raw_name)
target_env_name = re.findall(r"^DST_\d+_(\w+)$", target_env_raw_name)[0]
os.putenv(target_env_name, env_value)
os.environ[target_env_name] = env_value

# Expand shell commands from environment options
# this resolves environment variables used in the string
Expand Down

0 comments on commit a009db7

Please sign in to comment.