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.
15 lines
711 B
15 lines
711 B
diff --git a/src/virtualenv/discovery/py_info.py b/src/virtualenv/discovery/py_info.py
|
|
index 0de6128..006df83 100644
|
|
--- a/src/virtualenv/discovery/py_info.py
|
|
+++ b/src/virtualenv/discovery/py_info.py
|
|
@@ -124,6 +124,9 @@ class PythonInfo(object):
|
|
prefixes = self.prefix, self.exec_prefix, self.base_prefix, self.base_exec_prefix
|
|
config_var = {k: "" if v in prefixes else v for k, v in self.sysconfig_vars.items()}
|
|
result = self.sysconfig_path(key, config_var=config_var).lstrip(os.sep)
|
|
+ # A hack for https://github.com/pypa/virtualenv/issues/2208
|
|
+ if result.startswith(u"local/"):
|
|
+ return result[6:]
|
|
return result
|
|
|
|
@staticmethod
|