labscript-suite / labscript-utils

Shared modules used by the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦. Includes a graphical exception handler, debug tools, configuration management, cross platform filepath conversions, unit conversions and custom GUI widgets.
http://labscriptsuite.org
Other
2 stars 45 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