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

Load example_experiment.py on first run of runmanager #60

Open rpanderson opened 4 years ago

rpanderson commented 4 years ago

This PR contributes to works-out-the-box functionality. Implementation would be by including app_saved_configs/example_apparatus/runmanager/runmanager.ini in the default_profile created by labscript-utils.

[runmanager_state]
current_labscript_file = 'C:\\Users\\rpanderson\\labscript-suite\\userlib\\labscriptlib\\example_apparatus\\example_experiment.py'

However, this either needs to be dynamically generated during labscript-profile-create or permit wildcards, e.g.

[runmanager_state]
current_labscript_file = %(labscript_suite)s\userlib\labscriptlib\example_apparatus\example_experiment.py