Skip to content

Commit 7efd191

Browse files
Set labscript suite profile as default key in startup function
The function that adds userlib and pythonlib to sys.path can't interpolate labscript_suite unless the configparser is given it as a default.
1 parent 4952f62 commit 7efd191

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labscript_profile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def add_userlib_and_pythonlib():
4848
labconfig = default_labconfig_path()
4949
if labconfig is None or not os.path.exists(labconfig):
5050
return
51-
config = ConfigParser()
51+
config = ConfigParser(defaults={'labscript_suite': LABSCRIPT_SUITE_PROFILE})
5252
config.read(labconfig)
5353
for option in ['userlib', 'pythonlib']:
5454
try:

0 commit comments

Comments
 (0)