Skip to content

Commit

Permalink
try and fix win32
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees committed Oct 15, 2023
1 parent 3966ccc commit 37e5180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setenvironment/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class OsEnvironment(Environment):
def __init__(self):
"""Constructor that initializes from the OS environment."""
self.paths = os.environ["PATH"].split(os.pathsep)
self.vars = os.environ.copy()
self.vars = dict(os.environ)
self.vars.pop("PATH", None)
self.paths = [path.strip() for path in self.paths if path.strip() != ""]

Expand Down

0 comments on commit 37e5180

Please sign in to comment.