Skip to content

Commit

Permalink
Merge branch 'main' into update-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Nov 22, 2023
2 parents 14e433a + 50aad42 commit 317a1b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pinefarm/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,9 @@ def lhapdf_conf(pdf):
LHAPDF name of the required PDF
"""
# user settings *always* take precedence
if os.environ.get("LHAPDF_DATA_PATH") is not None:
return
if shutil.which("lhapdf-config") is not None or pkgconfig.exists("lhapdf"):
lhapdf_data = pathlib.Path(
subprocess.run("lhapdf-config --datadir".split(), capture_output=True)
Expand Down

0 comments on commit 317a1b2

Please sign in to comment.