Skip to content
Snippets Groups Projects
Commit a79ea35d authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

Run npdet_info in bash subshell

parent 54a5ea0c
No related branches found
No related tags found
1 merge request!253Resolve "Add required calibration/configuration artifacts to container"
This commit is part of merge request !253. Comments created here will be created in the context of that merge request.
...@@ -150,12 +150,12 @@ if __name__ == '__main__': ...@@ -150,12 +150,12 @@ if __name__ == '__main__':
file=f) file=f)
## run once inside global prefix to initialize artifacts in /opt/detectors ## run once inside global prefix to initialize artifacts in /opt/detectors
os.environ['DETECTOR_PATH'] = args.prefix os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'cd {args.prefix} && npdet_info print world_z {prefix}/share/athena/athena.xml' cmd = f'bash -c \'cd {args.prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/athena/athena.xml\''
print(cmd) print(cmd)
os.system(cmd) os.system(cmd)
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH ## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
os.environ['DETECTOR_PATH'] = args.prefix os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'cd {prefix} && npdet_info print world_z {prefix}/share/athena/athena.xml' cmd = f'bash -c \'cd {prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/athena/athena.xml\''
print(cmd) print(cmd)
os.system(cmd) os.system(cmd)
print(' --> Symlinking default detector for backward compatibility') print(' --> Symlinking default detector for backward compatibility')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment