Skip to content
Snippets Groups Projects
Commit 52579ce4 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Merge branch 'fix/spaces_in_config' into 'master'

Fix: Escape spaces in config strings

See merge request detectors/pycalibration!187
parents 36343d9d 6ef4d044
No related branches found
No related tags found
1 merge request!187Fix: Escape spaces in config strings
...@@ -80,10 +80,10 @@ async def get_run_base(instr_name, det_name, detector): ...@@ -80,10 +80,10 @@ async def get_run_base(instr_name, det_name, detector):
if key == 'out-folder': if key == 'out-folder':
item = detector['out-folder'].format(instrument=instr_name, item = detector['out-folder'].format(instrument=instr_name,
detector=det_name) detector=det_name)
run_base += [str(item)] run_base += [str(item).replace(' ', '\ ')]
else: else:
for val in item: for val in item:
run_base += [str(val)] run_base += [str(val).replace(' ', '\ ')]
return run_base return run_base
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment