Skip to content
Snippets Groups Projects
Commit ed5851ef authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

OnDA example: Use API function to combine target Path

parent 4fb83dab
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,10 @@ class worker(multiprocessing.Process):
break
self.log.debug("worker-" + str(self.id) + ": metadata " + str(metadata["filename"]))
filepath = os.path.join(metadata["relativePath"], metadata["filename"])
filepath = os.path.join(basePath, filepath)
# filepath = os.path.join(metadata["relativePath"], metadata["filename"])
# filepath = os.path.join(basePath, filepath)
filepath = self.query.generateTargetFilepath(basePath, metadata)
self.log.debug("worker-" + str(self.id) + ": filepath " + filepath)
with open(filepath, "r") as fileDescriptor:
content = fileDescriptor.read()
......
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