Skip to content

Commit

Permalink
needed to import Path from pathlib
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Apr 23, 2023
1 parent 9b512ff commit 70df979
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pycax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@
]

# Set the bibtex entry to the misc entry referenced in CITATION.
import sys
from pathlib import Path
def _get_bibtex():
refs = (Path(__file__).parent / "CITATION").read_text().split("@misc")[1:]
return f"@misc{refs[0]}" if refs else ""
Expand Down

0 comments on commit 70df979

Please sign in to comment.