-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure we don't pick up Poetry's virtualenv as the system env
- Loading branch information
Showing
2 changed files
with
41 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
import os | ||
|
||
from .utils._compat import Path | ||
from .utils.appdirs import user_cache_dir | ||
from .utils.appdirs import user_config_dir | ||
from .utils.appdirs import user_data_dir | ||
|
||
|
||
CACHE_DIR = user_cache_dir("pypoetry") | ||
CONFIG_DIR = user_config_dir("pypoetry") | ||
|
||
REPOSITORY_CACHE_DIR = Path(CACHE_DIR) / "cache" / "repositories" | ||
|
||
|
||
def data_dir(): # type: () -> Path | ||
if os.getenv("POETRY_HOME"): | ||
return Path(os.getenv("POETRY_HOME")).expanduser() | ||
|
||
return Path(user_data_dir("pypoetry", roaming=True)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters