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 9ae7826 commit 357d460Copy full SHA for 357d460
portable.py
@@ -285,3 +285,8 @@ def prepare_editor_args(editor):
285
args = editor.rsplit()
286
shell = False
287
return (args, shell)
288
+
289
290
+def os_chmod(dest, mode):
291
+ if isUnix():
292
+ os.chmod(dest, mode)
project.py
@@ -233,7 +233,8 @@ def _Copy(self):
233
# make the file read-only
234
mode = os.stat(dest)[stat.ST_MODE]
235
mode = mode & ~(stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH)
236
- os.chmod(dest, mode)
+ # os.chmod(dest, mode)
237
+ portable.os_chmod(dest, mode)
238
except IOError:
239
_error('Cannot copy file %s to %s', src, dest)
240
0 commit comments