Skip to content

Commit

Permalink
Add possibility to use LEGEND_TESTDATA env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gipert committed Oct 17, 2022
1 parent 2eb3519 commit fafeb39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/legend_testdata/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
class LegendTestData:
def __init__(self):
self._default_git_ref = "main"
self._repo_path = path.join(gettempdir(), "legend-testdata-" + getuser())
self._repo_path = os.getenv(
"LEGEND_TESTDATA", path.join(gettempdir(), "legend-testdata-" + getuser())
)
self._repo: Repo = self._init_testdata_repo()

def _init_testdata_repo(self):
Expand Down

0 comments on commit fafeb39

Please sign in to comment.