Skip to content
Snippets Groups Projects
Commit e5d3392b authored by Andre Sailer's avatar Andre Sailer
Browse files

DD4hepSimulation: fix issue when compactFile did not contain a slash

This makes sure a correct URI is passed to the documenthandler (XMLLoader)
parent 2d3c8ca6
No related branches found
No related tags found
No related merge requests found
...@@ -291,7 +291,7 @@ class DD4hepSimulation(object): ...@@ -291,7 +291,7 @@ class DD4hepSimulation(object):
dd4hep.setPrintLevel(self.printLevel) dd4hep.setPrintLevel(self.printLevel)
for compactFile in self.compactFile: for compactFile in self.compactFile:
kernel.loadGeometry(str("file:" + compactFile)) kernel.loadGeometry(str("file:" + os.path.abspath(compactFile)))
detectorDescription = kernel.detectorDescription() detectorDescription = kernel.detectorDescription()
DDG4.importConstants(detectorDescription) DDG4.importConstants(detectorDescription)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment