Belle II Software
development
decay_hash_interpreter.py
1
#!/usr/bin/env python
2
3
10
11
import
subprocess
12
import
sys
13
14
OLD =
"decay_hash_interpreter.py"
15
NEW =
"b2decay-hash-interpreter.py"
16
17
print(f
"""\033[0;31mAttention:\033[0m {OLD} has been renamed to {NEW}.
18
19
Some time ago the software group has decided that we should enforce a more
20
systematic naming convention for command line tools. The old names have been
21
kept for compatibility but will now be removed. The tool you tried to call is
22
one of those which has been renamed.
23
24
From now on please use \033[0;32m{NEW}\033[0m
25
26
\033[0;31mAttention:\033[0m ${OLD} has been renamed to ${NEW}."""
27
)
28
29
command = [NEW] + sys.argv[1:]
30
print(f
"\nRunning command {' '.join(command)}\n"
)
31
subprocess.run(command, check=
True
)
analysis
tools
decay_hash_interpreter.py
Generated on Tue Nov 12 2024 02:33:03 for Belle II Software by
1.9.6