Skip to content

Commit

Permalink
fix ValueError when unpacking (#2165)
Browse files Browse the repository at this point in the history
  • Loading branch information
denismaciel authored Aug 9, 2021
1 parent 8394049 commit 3f231f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog/2165.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix unpacking dictionary items in PythonInfo.install_path
2 changes: 1 addition & 1 deletion src/virtualenv/discovery/py_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def install_path(self, key):
if result is None: # use sysconfig if distutils is unavailable
# set prefixes to empty => result is relative from cwd
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}
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)
return result

Expand Down

0 comments on commit 3f231f2

Please sign in to comment.