diff --git a/zulip_bots/zulip_bots/finder.py b/zulip_bots/zulip_bots/finder.py index 3985e92..7c5ae20 100644 --- a/zulip_bots/zulip_bots/finder.py +++ b/zulip_bots/zulip_bots/finder.py @@ -5,9 +5,7 @@ from typing import Any, Optional, Text, Tuple current_dir = os.path.dirname(os.path.abspath(__file__)) -def import_module_from_source(path: Text, name: Optional[Text]=None) -> Any: - if not name: - name = splitext(basename(path))[0] +def import_module_from_source(path: Text, name: Text) -> Any: # importlib.util.module_from_spec is supported from Python3.5 py_version = sys.version_info