Skip to content

Commit

Permalink
In madevent_interface.py, fix madgraph5/madgraph4gpu#947: do not dele…
Browse files Browse the repository at this point in the history
…te G* if it is not a directory (e.g. GpuAbstraction.h)
  • Loading branch information
valassi committed Aug 2, 2024
1 parent ff76bb2 commit de7d191
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions madgraph/interface/madevent_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3967,6 +3967,7 @@ def do_create_gridpack(self, line):
for P in Pdir:
allG = misc.glob('G*', path=P)
for G in allG:
if not os.path.isdir(G): continue
if pjoin(P, G) not in Gdir:
logger.debug('removing %s', pjoin(P,G))
shutil.rmtree(pjoin(P,G))
Expand Down

0 comments on commit de7d191

Please sign in to comment.