Skip to content

Commit 3465041

Browse files
Do not write labscript_suite to newly created config files
Disable interpolation when creating a config file, otherwise reading entries with interpolation throws an error. We just manipulate the file as raw strings.
1 parent 7efd191 commit 3465041

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

labscript_profile/create.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ def make_labconfig_file():
2020
outfile.write(data)
2121

2222
# Now change some things about it:
23-
config = configparser.ConfigParser()
23+
config = configparser.ConfigParser(interpolation=None)
2424
config.read(target_path)
25-
config.set('DEFAULT', 'labscript_suite', str(LABSCRIPT_SUITE_PROFILE))
2625
if sys.platform in ['linux', 'linux2']:
2726
config.set('programs', 'text_editor', 'gedit')
2827
elif sys.platform == 'darwin':

0 commit comments

Comments
 (0)