From f38a7ef494d43abba7c20a26a348bcb6521f8b43 Mon Sep 17 00:00:00 2001 From: martinRenou <martin.renou@gmail.com> Date: Tue, 23 Jan 2024 10:50:22 +0100 Subject: [PATCH] Fix: Path to environment file should be relative to the lite dir (#47) --- jupyterlite_xeus/add_on.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyterlite_xeus/add_on.py b/jupyterlite_xeus/add_on.py index d3b040d..7bb1586 100644 --- a/jupyterlite_xeus/add_on.py +++ b/jupyterlite_xeus/add_on.py @@ -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: @@ -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)