summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2014-06-04 18:11:46 (GMT)
committerBarry Warsaw <barry@python.org>2014-06-04 18:11:46 (GMT)
commitadaddde369872dfbc7fd248794d07614d4395562 (patch)
tree7dfb94ae781d23f1693675f0002e5888c9bb1b84 /Lib
parente3fcfc240d834083ebe05b6ca2faae5988b8477e (diff)
downloadcpython-adaddde369872dfbc7fd248794d07614d4395562.zip
cpython-adaddde369872dfbc7fd248794d07614d4395562.tar.gz
cpython-adaddde369872dfbc7fd248794d07614d4395562.tar.bz2
Don't chmod() if path is a symlink.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/venv/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/venv/__init__.py b/Lib/venv/__init__.py
index c258b1c..b5ef2d8 100644
--- a/Lib/venv/__init__.py
+++ b/Lib/venv/__init__.py
@@ -215,7 +215,8 @@ class EnvBuilder:
# Issue 18807: make copies if
# symlinks are not wanted
copier(context.env_exe, path)
- os.chmod(path, 0o755)
+ if not os.path.islink(path):
+ os.chmod(path, 0o755)
else:
subdir = 'DLLs'
include = self.include_binary