Skip to content

Commit

Permalink
DDSim: do not fail if remote files are supposed to be used as input
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Jun 26, 2024
1 parent 3b14b49 commit 865ec80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DDG4/python/DDSim/DD4hepSimulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import sys
import textwrap
import traceback
from urllib.parse import urlparse
from DDSim.Helper.Meta import Meta
from DDSim.Helper.LCIO import LCIO
from DDSim.Helper.HepMC3 import HepMC3
Expand Down Expand Up @@ -566,7 +567,7 @@ def __checkFilesExist(self, fileNames, fileType=''):
if isinstance(fileNames, str):
fileNames = [fileNames]
for fileName in fileNames:
if not os.path.exists(fileName):
if not os.path.exists(fileName) and not urlparse(fileName).scheme:
self._errorMessages.append(f"ERROR: The {fileType}file '{fileName}' does not exist")

def __checkFileFormat(self, fileNames, extensions):
Expand Down

0 comments on commit 865ec80

Please sign in to comment.