Skip to content

Commit 9dfcb43

Browse files
authored
ensure prefix path is absolute (#1227)
Replaces #1208 as the PR is not edit-able.
1 parent afca44a commit 9dfcb43

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/changes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Release History
22
===============
33

4+
45
16.1.0 (unreleased)
56
-------------------
67

78
* Fixed documentation to use pypi.org and correct curl options; :issue:`1042`
9+
* bug fix: ensure prefix is absolute when creating a new virtual environment :issue:`1208`
810

911
16.0.0 (2018-05-16)
1012
-------------------

src/virtualenv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
11851185
prefix = sys.base_prefix
11861186
else:
11871187
prefix = sys.prefix
1188+
prefix = os.path.abspath(prefix)
11881189
mkdir(lib_dir)
11891190
fix_lib64(lib_dir, symlink)
11901191
stdlib_dirs = [os.path.dirname(os.__file__)]

0 commit comments

Comments
 (0)