Commit 97de0a3a by Sébastien Eustace

Fix settings.virtualenvs.path setting not being settable

parent 3d01958b
__version__ = "0.11.0-alpha.4"
__version__ = "0.11.0"
......@@ -45,6 +45,9 @@ To remove a repository (repo is a short alias for repositories):
@property
def unique_config_values(self):
from poetry.locations import CACHE_DIR
from poetry.utils._compat import Path
boolean_validator = lambda val: val in {"true", "false", "1", "0"}
boolean_normalizer = lambda val: True if val in ["true", "1"] else False
......@@ -59,6 +62,11 @@ To remove a repository (repo is a short alias for repositories):
boolean_normalizer,
False,
),
"settings.virtualenvs.path": (
str,
lambda val: str(Path(val).resolve()),
str(Path(CACHE_DIR) / "virtualenvs"),
),
}
return unique_config_values
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment