Skip to content

Commit 2d716ea

Browse files
authored
fix when sys.path is None (#125)
1 parent f6d24cd commit 2d716ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pum/pum_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def demo_data(self) -> dict[str, str]:
262262

263263
def __del__(self):
264264
# Cleanup temporary directories and sys.path modifications
265-
if self.dependency_path:
265+
if self.dependency_path and sys.path:
266266
# Remove from sys.path if present
267267
sys.path = [p for p in sys.path if p != str(self.dependency_path)]
268268
# Remove the directory if it exists and is a TemporaryDirectory

0 commit comments

Comments
 (0)