-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
If groundwork gets run inside a notebook like jupyter, the Plugin initialisation will fail, as file is not available.
The problem on detail:
GwBasePattern tries to find the location of the plugin by checking the related file attribute.
This may not be available in each possible scenario, as e.g. the code may exist in memory only.
Suggested solution:
Implement a fallback mechanism, if file is not available. Like:
if hasattribute(sys.modules[self.__module__], "__file__"):
self.path = sys.modules[self.__module__].__file__
else:
self.path = ""
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
