Variable mistake

This commit is contained in:
Anton Hvornum 2021-02-17 14:22:26 +01:00
parent ad4733bbd0
commit a6bfe54951
1 changed files with 1 additions and 1 deletions

View File

@ -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