Skip to content

Commit 6ace575

Browse files
authored
fix: allow to set data-dir and python-installation-dir (#10595)
1 parent 21ac342 commit 6ace575

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/poetry/console/commands/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class ConfigCommand(Command):
7676
def unique_config_values(self) -> dict[str, tuple[Any, Any]]:
7777
unique_config_values = {
7878
"cache-dir": (str, lambda val: str(Path(val))),
79+
"data-dir": (str, lambda val: str(Path(val))),
7980
"virtualenvs.create": (boolean_validator, boolean_normalizer),
8081
"virtualenvs.in-project": (boolean_validator, boolean_normalizer),
8182
"virtualenvs.options.always-copy": (boolean_validator, boolean_normalizer),
@@ -102,6 +103,7 @@ def unique_config_values(self) -> dict[str, tuple[Any, Any]]:
102103
),
103104
"solver.lazy-wheel": (boolean_validator, boolean_normalizer),
104105
"keyring.enabled": (boolean_validator, boolean_normalizer),
106+
"python.installation-dir": (str, lambda val: str(Path(val))),
105107
}
106108

107109
return unique_config_values

0 commit comments

Comments
 (0)