Skip to content

Commit 26a0897

Browse files
ssssamdnicolodi
authored andcommitted
BUG: fix error when output directory is a relative path
This mistake was hidden in most cases because joining two absolute paths together with os.path.join() results in the first path being dropped. Fixes meson-python used with Tox.
1 parent 678dd56 commit 26a0897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesonpy/_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create_targz(path: Path) -> Iterator[Tuple[tarfile.TarFile, Optional[int]]]:
4747
mtime = int(source_date_epoch) if source_date_epoch else None
4848

4949
file = typing.cast(IO[bytes], gzip.GzipFile(
50-
os.path.join(path, path),
50+
path,
5151
mode='wb',
5252
mtime=mtime,
5353
))

0 commit comments

Comments
 (0)