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

Commit 9ff55ec

Browse files
committed
Fix when the env variable was None
1 parent c4fcede commit 9ff55ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jupyterlite_xeus_python/env_build_addon.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ def post_build(self, manager):
247247
shutil.rmtree(self.cwd.name, ignore_errors=True)
248248
shutil.rmtree(self.root_prefix, ignore_errors=True)
249249

250-
os.environ["CONDARC"] = self.orig_config
250+
if self.orig_config is not None:
251+
os.environ["CONDARC"] = self.orig_config
252+
else:
253+
del os.environ["CONDARC"]
251254

252255
return []

0 commit comments

Comments
 (0)