We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8df2e49 commit 16660abCopy full SHA for 16660ab
misc/bazel/internal/install.py
@@ -43,6 +43,8 @@
43
assert destdir.is_absolute(), "Provide `--build-file` to resolve destination directory"
44
script = runfiles.Rlocation(opts.pkg_install_script)
45
46
+_WIN_FILE_IN_USE_ERROR_CODE = 32
47
+
48
if destdir.exists() and opts.cleanup:
49
if platform.system() == 'Windows':
50
# On Windows we might have virus scanner still looking at the path so
@@ -52,7 +54,7 @@
52
54
shutil.rmtree(destdir)
53
55
break
56
except OSError as e:
- if e.winerror == 32:
57
+ if e.winerror == _WIN_FILE_IN_USE_ERROR_CODE:
58
time.sleep(retry_delay)
59
else:
60
raise
0 commit comments