Skip to content

Commit

Permalink
fix issue 17
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-hurst committed Oct 30, 2024
1 parent 1ef19df commit 30af31c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rpm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ def get_sitepackages_and_suffixes(interpreter):
script = textwrap.dedent(
"""
import importlib
import importlib.machinery
import json
import sys
try:
import importlib.machinery
except ImportError:
print(json.dumps({"sitepackages": [], "suffixes": []}))
sys.exit()
import site
print(
json.dumps(
Expand Down

0 comments on commit 30af31c

Please sign in to comment.