Skip to content

Commit d1fb549

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] fix saving versions on windows (#8792)
Reviewed By: scotts Differential Revision: D77997076 fbshipit-source-id: faa97c533a08ce070cbac4a76b5e0e00c3f5cd8a Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
1 parent 5f1d1dd commit d1fb549

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
@@ -79,7 +79,7 @@ def get_version():
7979

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

0 commit comments

Comments
 (0)