Skip to content

Commit

Permalink
support venv
Browse files Browse the repository at this point in the history
  • Loading branch information
umjammer committed Dec 6, 2023
1 parent 8f5d043 commit 4b5930a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ run.sh
profile/
.idea/
venv/
.venv/
6 changes: 5 additions & 1 deletion runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def get_plugins():
for c in candidates:
modname = root[2:].replace('/', '.') + '.' + os.path.splitext(c)[0]
try:
module = importlib.import_module(modname)
if not modname.startswith("."):
# except venv folder
module = importlib.import_module(modname)
else:
continue
except (ImportError, NotImplementedError):
continue
for cls in dir(module):
Expand Down

0 comments on commit 4b5930a

Please sign in to comment.