5 from __future__
import print_function
7 import DataQualityUtils.handimod
as mod
13 def handi( name, resultsFile, htmlDir, browserMenu=False, allDirsScriptLoc="https://atlasdqm.cern.ch/static/js/
" ):
29 mod.handiWithComparisons( name, resultsFile, htmlDir, runListLoc, compare, browserMenu, allDirsScriptLoc )
33 cmdi = sys.argv[0].rfind(
"/")
34 cmd = sys.argv[0][cmdi+1:]
35 print(
"Usage: ", cmd,
"[-m|--browser-menu] [-s|--script-loc=<URL>] <name_of_system> <results_file_name> <html_output_directory>")
42 short_options =
"hms:"
43 long_options = [
"help",
"browser-menu",
"script-loc="]
45 if __name__ ==
"__main__":
52 opts, args = getopt.getopt(sys.argv[1:], short_options, long_options)
53 except getopt.GetoptError:
57 if(cmd
in (
'--help',)
or cmd
in (
'-h',)):
60 if (cmd
in (
'--browser-menu',)
or cmd
in (
'-m',)):
62 if (cmd
in (
'--script-loc',)
or cmd
in (
'-s',)):
63 allDirsScriptLoc = arg
73 handi( name, resultsFile, html_dir, browserMenu, allDirsScriptLoc )