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

Encapsulate running external programs #20

Open philipstarkey opened 6 years ago

philipstarkey commented 6 years ago

Original report (archived issue) by Chris Billington (Bitbucket: cbillington, GitHub: chrisjbillington).


Opening an HDF5 file or text file should be done with common functions in labscript_utils rather than code duplication across each program that does it.

If there is an error or no external program is configured in labconfig, this function should be able to pop up a dialog prompting the user to pick a text editor or help it find the path to HDFview (or prompting them to install HDFview). It should then write their choice to labconfig.

philipstarkey commented 6 years ago

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