You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
706 B
17 lines
706 B
6 years ago
|
diff --git a/virtualenv.py b/virtualenv.py
|
||
|
index c4e3bd5..89b8863 100755
|
||
|
--- a/virtualenv.py
|
||
|
+++ b/virtualenv.py
|
||
|
@@ -1181,8 +1181,9 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
|
||
|
exec_dir = join(sys.exec_prefix, 'Lib')
|
||
|
else:
|
||
|
exec_dir = join(sys.exec_prefix, 'lib', py_version)
|
||
|
- for fn in os.listdir(exec_dir):
|
||
|
- copyfile(join(exec_dir, fn), join(lib_dir, fn), symlink)
|
||
|
+ if os.path.isdir(exec_dir):
|
||
|
+ for fn in os.listdir(exec_dir):
|
||
|
+ copyfile(join(exec_dir, fn), join(lib_dir, fn), symlink)
|
||
|
|
||
|
if is_jython:
|
||
|
# Jython has either jython-dev.jar and javalib/ dir, or just
|