mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Create virtualenvs directory if it does not exist
This commit is contained in:
committed by
Tzu-ping Chung
parent
9084792db0
commit
65ccd765b6
+4
-1
@@ -1281,7 +1281,10 @@ def get_workon_home():
|
||||
workon_home = os.path.join(
|
||||
os.environ.get("XDG_DATA_HOME", "~/.local/share"), "virtualenvs"
|
||||
)
|
||||
return Path(os.path.expandvars(workon_home)).expanduser()
|
||||
# Create directory if it does not already exist
|
||||
expanded_path = Path(os.path.expandvars(workon_home)).expanduser()
|
||||
mkdir_p(str(expanded_path))
|
||||
return expanded_path
|
||||
|
||||
|
||||
def is_virtual_environment(path):
|
||||
|
||||
Reference in New Issue
Block a user