Skip to content

Commit a9927c8

Browse files
dihmNMFolks
andcommitted
Ensure $HOME gets expanded correctly during compilation on unix
Co-authored-by: NMFolks <[email protected]>
1 parent c9eac49 commit a9927c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labscript_profile/create.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def compile_connection_table():
6868
config.read(default_labconfig_path())
6969

7070
# The path to the user's connection_table.py script
71-
script_path = config['paths']['connection_table_py']
71+
script_path = os.path.expandvars(config['paths']['connection_table_py'])
7272
# path to the connection_table.h5 destination
73-
output_h5_path = config['paths']['connection_table_h5']
73+
output_h5_path = os.path.expandvars(config['paths']['connection_table_h5'])
7474
# create output directory, if needed
7575
Path(output_h5_path).parent.mkdir(parents=True, exist_ok=True)
7676
# compile the h5 file

0 commit comments

Comments
 (0)