Skip to content

Commit

Permalink
Merge pull request #4 from nebukadhezer/small-fix
Browse files Browse the repository at this point in the history
needs to return app
  • Loading branch information
hannesdelbeke authored Sep 14, 2023
2 parents 3ee544f + 7a29fe2 commit 332a65a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion detect_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def detect_app_from_interpreter() -> Optional[App]:
for app, possible_names in apps_sys_exe_check.items():
if exe_name in possible_names:
logging.debug(f"App detected '{app.id}' from interpreter")
return getattr(sys.modules[__name__], app)
return app


def detect_app_from_env_var() -> Optional[App]:
Expand Down

0 comments on commit 332a65a

Please sign in to comment.