Skip to content

Commit

Permalink
Default to using os.defpath if PATH is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio authored Oct 20, 2024
1 parent be0b234 commit c0e3a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systemdspawner/systemdspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ async def start(self):

if self.extra_paths:
new_path_list = [self._expand_user_vars(p) for p in self.extra_paths]
current_path = env.get("PATH")
current_path = env.get("PATH", os.defpath)
if current_path:
new_path_list.append(current_path)
env["PATH"] = ":".join(new_path_list)
Expand Down

0 comments on commit c0e3a1a

Please sign in to comment.