Variable mistake
This commit is contained in:
parent
ad4733bbd0
commit
a6bfe54951
|
|
@ -169,7 +169,7 @@ class Profile(Script):
|
|||
# trigger a traditional:
|
||||
# if __name__ == 'moduleName'
|
||||
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'):
|
||||
return True
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in New Issue