Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:python:backports
python-scikit-hep-testdata
scikit-hep-testdata-datadir.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File scikit-hep-testdata-datadir.patch of Package python-scikit-hep-testdata
Index: scikit-hep-testdata-0.4.30/src/skhep_testdata/local_files.py =================================================================== --- scikit-hep-testdata-0.4.30.orig/src/skhep_testdata/local_files.py +++ scikit-hep-testdata-0.4.30/src/skhep_testdata/local_files.py @@ -1,5 +1,6 @@ from __future__ import annotations +import os import sys import tempfile import zipfile @@ -17,7 +18,7 @@ else: __all__ = ("data_path", "download_all", "known_files") -DIR = Path(__file__).parent.resolve() +DIR = Path(os.environ.get("SKHEP_DATA_DIR", "/usr/share/scikit-hep-testdata/")) baseurl = "https://raw.githubusercontent.com/scikit-hep/scikit-hep-testdata/main/src/skhep_testdata/data/" zipurl = "https://github.com/scikit-hep/scikit-hep-testdata/zipball/main" Index: scikit-hep-testdata-0.4.30/tests/test_local_files.py =================================================================== --- scikit-hep-testdata-0.4.30.orig/tests/test_local_files.py +++ scikit-hep-testdata-0.4.30/tests/test_local_files.py @@ -6,7 +6,7 @@ import pytest import skhep_testdata as skhtd -data_dir = os.path.dirname(skhtd.__file__) +data_dir = str(skhtd.local_files.DIR) data_dir = os.path.join(data_dir, "data")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor