Skip to content
Snippets Groups Projects
Commit 5eb99ebd authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Explicitly allow absolute paths to project files

parent 87fb2350
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,10 @@ class IlastikImageToImageModel(ImageToImageModel):
def __init__(self, params, autoload=True):
self.project_file = Path(params['project_file'])
params['project_file'] = self.project_file.__str__()
pap = extensions.ilastik.conf.paths['project_files'] / self.project_file
if self.project_file.is_absolute():
pap = self.project_file
else:
pap = extensions.ilastik.conf.paths['project_files'] / self.project_file
self.project_file_abspath = pap
if not pap.exists():
raise FileNotFoundError(f'Project file does not exist: {pap}')
......
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