Skip to content

Commit 33ee3d7

Browse files
bjarzembNicolasHug
andauthored
Update setup.py
Co-authored-by: Nicolas Hug <[email protected]>
1 parent 65a08c7 commit 33ee3d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def get_version():
8383

8484
def write_version_file(version, sha):
8585
# Exists for BC, probably completely useless.
86-
with open(os.path.join(ROOT_DIR, "torchvision", "version.py"), "w") as f:
86+
with open(ROOT_DIR / "torchvision" / "version.py", "w") as f:
8787
f.write(f"__version__ = '{version}'\n")
8888
f.write(f"git_version = {repr(sha)}\n")
8989
f.write("from torchvision.extension import _check_cuda_version\n")

0 commit comments

Comments
 (0)