Skip to content

Commit

Permalink
fix saving versions on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarzemb committed Dec 9, 2024
1 parent a9a726a commit 65a08c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_version():

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

0 comments on commit 65a08c7

Please sign in to comment.