Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit fd6ab09

Browse files
authored
Merge pull request #73 from martinRenou/fix_caching
Fix caching issue
2 parents 659f8e9 + 533040f commit fd6ab09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlite_xeus_python/env_build_addon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__(self, *args, **kwargs):
114114
self.env_name = "xeus-python-kernel"
115115

116116
# Cleanup tmp dir in case it's not empty
117-
shutil.rmtree(self.root_prefix, ignore_errors=True)
117+
shutil.rmtree(Path(self.root_prefix) / "envs", ignore_errors=True)
118118
Path(self.root_prefix).mkdir(parents=True, exist_ok=True)
119119

120120
self.orig_config = os.environ.get("CONDARC")
@@ -306,7 +306,7 @@ def dedupe_federated_extensions(self, config):
306306

307307
def __del__(self):
308308
# Cleanup
309-
shutil.rmtree(self.root_prefix, ignore_errors=True)
309+
shutil.rmtree(Path(self.root_prefix) / "envs", ignore_errors=True)
310310

311311
if self.orig_config is not None:
312312
os.environ["CONDARC"] = self.orig_config

0 commit comments

Comments
 (0)