Variable mistake
This commit is contained in:
parent
ad4733bbd0
commit
a6bfe54951
|
|
@ -169,7 +169,7 @@ class Profile(Script):
|
||||||
# trigger a traditional:
|
# trigger a traditional:
|
||||||
# if __name__ == 'moduleName'
|
# if __name__ == 'moduleName'
|
||||||
if '__name__' in source_data and '_prep_function' in source_data:
|
if '__name__' in source_data and '_prep_function' in source_data:
|
||||||
with profile.load_instructions(namespace=f"{selected_profile}.py") as imported:
|
with profile.load_instructions(namespace=f"{self.namespace}.py") as imported:
|
||||||
if hasattr(imported, '_prep_function'):
|
if hasattr(imported, '_prep_function'):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue