Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KWH40
fml40-reference-implementation
Commits
447146c5
Commit
447146c5
authored
Oct 26, 2020
by
Jiahang Chen
Browse files
fix feature file path bug
parent
50cfaf48
Pipeline
#348707
passed with stage
in 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ml/feature.py
View file @
447146c5
...
...
@@ -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__
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment