diff --git a/api/core/extension/extensible.py b/api/core/extension/extensible.py index 231743bf2a..b5737accfe 100644 --- a/api/core/extension/extensible.py +++ b/api/core/extension/extensible.py @@ -42,7 +42,7 @@ class Extensible: position_map: dict[str, int] = {} # get the path of the current class - current_path = os.path.abspath(cls.__module__.replace(".", os.path.sep) + ".py") + current_path = os.path.abspath(__file__) current_dir_path = os.path.dirname(current_path) # traverse subdirectories