Skip to content

Commit

Permalink
Fix snap env
Browse files Browse the repository at this point in the history
  • Loading branch information
LyzardKing committed Nov 21, 2022
1 parent 2a98d8f commit ceabb2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ parts:
build-packages:
- libapt-pkg-dev
- gettext
- python3-venv
- python3-apt
- python3-argcomplete
- python3-gi
Expand Down
2 changes: 1 addition & 1 deletion umake/frameworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def setup(self):
if not self.dry_run and self.need_root_access and os.geteuid() != 0:
logger.debug("Requesting root access")
cmd = ["sudo", "-E", "env"]
for var in ["PATH", "LD_LIBRARY_PATH", "PYTHONUSERBASE", "PYTHONHOME"]:
for var in ["PATH", "LD_LIBRARY_PATH", "PYTHONUSERBASE", "PYTHONHOME", "PYTHONPATH"]:
if os.getenv(var):
cmd.append("{}={}".format(var, os.getenv(var)))
if os.getenv("SNAP"):
Expand Down

0 comments on commit ceabb2a

Please sign in to comment.