15 if 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')
20 lcmod = importlib.util.module_from_spec(spec)
21 spec.loader.exec_module(lcmod)
24 lc.workdir = os.getcwd()
25 lc.subdir = os.path.basename(os.path.normpath(lc.workdir))
27 lc.grlfn = os.path.basename(glob.glob(lc.workdir+
'/*.xml')[0])
31 lc.f =
open(lc.workdir+
'/working.html',
'a')
40 print (
'Content-Type: text/html')
42 print (
'<html><head>')
43 print (
'<meta http-equiv="Refresh" content="0; url=result.html">')
44 print (
'</head></html>')