We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee384da commit a8273e6Copy full SHA for a8273e6
__init__.py
@@ -252,6 +252,7 @@ def populate_registry():
252
253
254
if __name__ == '__main__':
255
- # Ensure code importing labscript_devices gets this module if we're running as
256
- # __main__, rather than a copy.
+ # If this module is run as __main__, make sure importing submodules still works,
+ # without double-importing this file:
257
+ __path__ = [os.path.dirname(os.path.abspath(__file__))]
258
sys.modules['labscript_devices'] = sys.modules['__main__']
0 commit comments