15if os.environ.get(
'SERVER_NAME',
'') ==
'atlas-lumicalc-dev.cern.ch':
16 spec = importlib.util.spec_from_file_location(
'LumiCalc',
'/var/www/lumicalc_dev/athena/LumiBlock/LumiCalc/python/LumiCalcHtml.py')
18 spec = importlib.util.spec_from_file_location(
'LumiCalc',
'/var/www/lumicalc/athena/LumiBlock/LumiCalc/python/LumiCalcHtml.py')
20lcmod = importlib.util.module_from_spec(spec)
21spec.loader.exec_module(lcmod)
24lc.workdir = os.getcwd()
25lc.subdir = os.path.basename(os.path.normpath(lc.workdir))
27 lc.grlfn = os.path.basename(glob.glob(lc.workdir+
'/*.xml')[0])
31lc.f = open(lc.workdir+
'/working.html',
'a')
40print (
'Content-Type: text/html')
43print (
'<meta http-equiv="Refresh" content="0; url=result.html">')
44print (
'</head></html>')