Skip to content

Commit

Permalink
Fix: Path to environment file should be relative to the lite dir (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jan 23, 2024
1 parent a6e5625 commit f38a7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jupyterlite_xeus/add_on.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def post_build(self, manager):
def create_prefix(self):
# read the environment file
root_prefix = Path(self.cwd.name) / "env"
env_file = Path(self.environment_file)
env_file = Path(self.manager.lite_dir) / self.environment_file

# open the env yaml file
with open(env_file, "r") as file:
Expand Down Expand Up @@ -303,7 +303,7 @@ def pack_prefix(self, kernel_dir):
mount_file=mount_path,
outname=outname,
outdir=out_path,
)
)
else:
msg = f"host_path {host_path} needs to be a file or a directory"
raise ValueError(msg)
Expand Down

0 comments on commit f38a7ef

Please sign in to comment.