Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 3e2c8d8 + ae69de6 commit 988433fCopy full SHA for 988433f
1 file changed
Tools/msi/make_zip.py
@@ -3,6 +3,7 @@
3
import re
4
import sys
5
import shutil
6
+import stat
7
import os
8
import tempfile
9
@@ -101,11 +102,16 @@ def copy_to_layout(target, rel_sources):
101
102
103
else:
104
for s, rel in rel_sources:
105
+ dest = target / rel
106
try:
- (target / rel).parent.mkdir(parents=True)
107
+ dest.parent.mkdir(parents=True)
108
except FileExistsError:
109
pass
- shutil.copy(str(s), str(target / rel))
110
+ if dest.is_file():
111
+ dest.chmod(stat.S_IWRITE)
112
+ shutil.copy(str(s), str(dest))
113
114
115
count += 1
116
117
return count
0 commit comments