Skip to content

Commit

Permalink
Resolve import issues in ParaView
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Aug 29, 2022
1 parent 999d9ca commit 2472d8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scooby/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}


STDLIB_PKGS = get_standard_lib_modules()
STDLIB_PKGS = None


def _criterion(name):
Expand Down Expand Up @@ -53,6 +53,8 @@ def track_imports():
"""Track all imported modules for the remainder of this session."""
if not TRACKING_SUPPORTED:
raise RuntimeError(SUPPORT_MESSAGE)
global STDLIB_PKGS
STDLIB_PKGS = get_standard_lib_modules()
builtins.__import__ = scooby_import
return

Expand Down

0 comments on commit 2472d8d

Please sign in to comment.