Skip to content
Snippets Groups Projects
Commit 4929816d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Merge branch 'fix-missing-example-uploads' into 'develop'

Fixed issue with wrong example_uploads.yaml path.

See merge request !1883
parents c3ebcfd0 cf82f7d4
No related branches found
No related tags found
1 merge request!1883Fixed issue with wrong example_uploads.yaml path.
Pipeline #206774 passed
......@@ -263,13 +263,19 @@ def gui_config():
def _generate_example_upload_metadata():
import yaml
with open(
os.path.join(
example_uploads_path = 'examples/data/uploads/example_uploads.yml'
if not os.path.exists(example_uploads_path):
example_uploads_path = os.path.join(
os.path.dirname(__file__),
'../../',
'examples/data/uploads/example_uploads.yml',
)
) as infile:
if not os.path.exists(example_uploads_path):
raise FileNotFoundError('Cannot find example_uploads.yml file')
with open(example_uploads_path, 'r') as infile:
return yaml.load(infile, Loader=yaml.SafeLoader)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment