Skip to content

Commit

Permalink
update flow
Browse files Browse the repository at this point in the history
  • Loading branch information
vertefra committed Aug 27, 2024
1 parent 9e98fc1 commit 6fab7d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qcog_python_client/qcog/pytorch/validate/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,18 @@ def get_third_party_imports(source_code: io.BytesIO, package_path: str) -> set[s
# Check if it's a package that belongs to the current package
# So it's part of the customer project
if is_package_module(os.path.join(package_path, base_package)):
print("-- It's a package module")
continue

# Check if it's a built-in module
if base_package in sys.builtin_module_names:
print("-- It's a built-in module")
continue

# Some packages are not installed in the standard library
# and have special paths.
spec = importlib.util.find_spec(base_package)
print("---> Spec: ", spec)

if spec is None or spec.origin is None:
continue
Expand Down

0 comments on commit 6fab7d6

Please sign in to comment.