Skip to content

Commit

Permalink
export_detector_gdml: remove file if it exists already
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkl committed Oct 13, 2021
1 parent 300ff3f commit 98710c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Examples/options/export_detector_gdml.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@
geodumpservice.gdml = "DetFCCeeCLD.gdml"
ApplicationMgr().ExtSvc += [geodumpservice]

# avoid error and remove output file if it already exists
if os.path.isfile(geodumpservice.gdml):
os.remove(geodumpservice.gdml)


0 comments on commit 98710c9

Please sign in to comment.