logParser crash when using gridpacks
When running the logParser for a log.generate which used a gridpack, it crashes with: "/afs/cern.ch/work/d/dhirsch/stop13TeV/mcjoboptions/scripts/logParser.py", line 368, in powhegChecks if not glob.glob(f"{os.path.dirname(logFile)}/mc_TeV..GRID.tar.gz"): File "/cvmfs/atlas.cern.ch/repo/sw/software/22.6/sw/lcg/releases/LCG_101_ATLAS_18/Python/3.9.6/x86_64-centos7-gcc11-opt/lib/python3.9/posixpath.py", line 152, in dirname p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not list
The problem is that the function powhegChecks(logFile) expects a filename, but gets the file content.
A similar problem should happen for Madgraph, since the function is defined properly with def madgraphChecks(logContent), but the variable logFile used to check the gridpack is nowwhere defined.
Cheers Dominic