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

Resolve "Add required calibration/configuration artifacts to container"

parent 36df81bb
No related branches found
No related tags found
1 merge request!253Resolve "Add required calibration/configuration artifacts to container"
......@@ -148,6 +148,16 @@ if __name__ == '__main__':
ip_version=ip['version'],
branch=branch),
file=f)
## run once inside global prefix to initialize artifacts in /opt/detectors
os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'bash -c \'cd {args.prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/{det}/{det}.xml\''
print(cmd)
os.system(cmd)
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
os.environ['DETECTOR_PATH'] = args.prefix
cmd = f'bash -c \'cd {prefix} && source {prefix}/setup.sh && npdet_info print world_z {prefix}/share/{det}/{det}.xml\''
print(cmd)
os.system(cmd)
print(' --> Symlinking default detector for backward compatibility')
full_prefix='{}/{}-{}'.format(args.prefix, default_detector, default_version)
cmd = ['ln -sf {full_prefix}/share {short_prefix}',
......
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