Skip to content

Commit

Permalink
fix parsing of path on windows github
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Oct 15, 2023
1 parent 8dd0845 commit 815a0eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/setenvironment/setenv_win32.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,11 @@ def query_registry_environment() -> RegistryEnvironment:
user_env = get_all_user_vars()
system_env = get_all_system_vars()
user_path = user_env.pop("PATH", "")
if not user_path:
user_path = user_env.pop("Path", "")
system_path = system_env.pop("PATH", "")
if not system_path:
system_path = system_env.pop("Path", "")
user_path_list = user_path.split(os.pathsep)
system_path_list = system_path.split(os.pathsep)
# clear out empty strings
Expand Down

0 comments on commit 815a0eb

Please sign in to comment.