Commit 71be4d28 authored by Alessio Berti's avatar Alessio Berti
Browse files

Fix to be able to use relative paths in the event source.

parent eb631d6b
Pipeline #92299 failed with stage
in 8 minutes and 28 seconds
......@@ -8,6 +8,7 @@ import logging
import glob
import re
import os.path
from pathlib import Path
import numpy as np
......@@ -109,7 +110,8 @@ class MAGICEventSource(EventSource):
the 'input_url' parameter.
self.file_list = glob.glob(kwargs['input_url'])
file_path = Path(kwargs['input_url'])
self.file_list = glob.glob(str(file_path.absolute()))
if not self.file_list:
raise ValueError("Unreadable or wrong wildcard file path given.")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment