Skip to content

Commit c69a7b9

Browse files
committed
Merge branch 'master' of github.com:NNPDF/eko
2 parents 7194cd0 + 2682545 commit c69a7b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ repos:
1919
- id: pycln
2020
args: [--config=pyproject.toml]
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: v0.9.9
22+
rev: v0.11.0
2323
hooks:
2424
# Run the linter.
2525
- id: ruff

src/eko/io/struct.py

+2
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,8 @@ def read(
386386
format. Otherwise, the `path` is interpreted as the location of an
387387
already extracted folder.
388388
"""
389+
# Take the absolute path in case we need to modify the eko in-place
390+
path = path.resolve()
389391
if extract:
390392
dir_ = Path(tempfile.mkdtemp(prefix=TEMP_PREFIX)) if dest is None else dest
391393
with tarfile.open(path) as tar:

0 commit comments

Comments
 (0)