labscript-suite-oldfinal1 / labscript_utils

Shared modules used by the labscript suite. Includes a graphical exception handler, debug tools, configuration management, cross platform filepath conversions, unit conversions and custom GUI widgets.
Other
0 stars 0 forks source link

Command line argument to turn off double import denier #19

Open philipstarkey opened 6 years ago

philipstarkey commented 6 years ago

Original report (archived issue) by Philip Starkey (Bitbucket: pstarkey, GitHub: philipstarkey).


Given the issues we are having with the double import denier, is it feasible to add a command line argument to all of our GUI programs that turns off the double import denier (so that, in the worse case, people can add the command line argument to the shortcut for the software, allowing them to continue working while they wait for the bugs to be fixed properly)?

philipstarkey commented 6 years ago

Original comment by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


This sounds good, I suggest --allow-double-imports.

For the time being you can import labscript_utils.double_import_denier; double_import_denier.disable() prior to anything causing problems