We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d24cd commit 2d716eaCopy full SHA for 2d716ea
pum/pum_config.py
@@ -262,7 +262,7 @@ def demo_data(self) -> dict[str, str]:
262
263
def __del__(self):
264
# Cleanup temporary directories and sys.path modifications
265
- if self.dependency_path:
+ if self.dependency_path and sys.path:
266
# Remove from sys.path if present
267
sys.path = [p for p in sys.path if p != str(self.dependency_path)]
268
# Remove the directory if it exists and is a TemporaryDirectory
0 commit comments