Commit 447146c5 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

fix feature file path bug

parent 50cfaf48
Pipeline #348707 passed with stage
in 14 seconds
......@@ -6,7 +6,8 @@
class Feature(ABC):
def __init__(self, name="", identifier=""):
self.__name = name
if "ml/fml40" in sys.modules[self.__class__.__module__].__file__:
path = sys.modules[__name__].__file__ if __name__ == "__main__" else __file__
if "ml/fml40" in path:
self.__class_name = "fml40::{}".format(self.__class__.__name__)
else:
self.__class_name = "ml40::{}".format(self.__class__.__name__)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment