fix: ensure existence of folders for pipx home

This commit is contained in:
Amin Yahyaabadi 2024-01-24 13:02:42 -08:00
parent cc30e9b1d5
commit 7fba762e3e
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
8 changed files with 13 additions and 9 deletions

View File

@ -26,13 +26,11 @@ words:
- copr
- CPATH
- Cppcheck
- nodistro
- dearmor
- CPPFLAGS
- cpprc
- untildified
- Cpython
- DCMAKE
- dearmor
- deps
- devel
- DVCPKG
@ -64,6 +62,7 @@ words:
- mxschmitt
- nala
- noconfirm
- nodistro
- noprogressbar
- nothrow
- npmrc
@ -85,6 +84,7 @@ words:
- Trofimovich
- tsbuildinfo
- ucrt
- untildified
- untildify
- upleveled
- vbatts
@ -92,6 +92,7 @@ words:
- VCPKG
- vcvarsall
- venv
- venvs
- visualc
- visualcpp
- vsversion

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -63,6 +63,9 @@ export async function setupPipPackWithPython(
if (isPipx && user) {
const pipxHome = await getPipxHome()
await mkdirp(pipxHome)
await mkdirp(join(pipxHome, "trash"))
await mkdirp(join(pipxHome, "shared"))
await mkdirp(join(pipxHome, "venv"))
// install to user home
env.PIPX_HOME = pipxHome