Belle II Software development
variables.py
1#!/usr/bin/env python3
2
3
10
11"""
12You can run ``b2help-variables`` to list all available variables.
13"""
14from variables import getCommandLineOptions
15import subprocess
16import basf2
17
18
19if __name__ == "__main__":
20
21 args = getCommandLineOptions()
22 basf2.B2WARNING("Calling basf2 variables.py is discouraged. The canonical way is to call b2help-variables.")
23
24 if args.pager:
25 subprocess.call("b2help-variables")
26 else:
27 subprocess.call(["b2help-variables", "--no-pager"])