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 - copr
- CPATH - CPATH
- Cppcheck - Cppcheck
- nodistro
- dearmor
- CPPFLAGS - CPPFLAGS
- cpprc - cpprc
- untildified
- Cpython - Cpython
- DCMAKE - DCMAKE
- dearmor
- deps - deps
- devel - devel
- DVCPKG - DVCPKG
@ -64,6 +62,7 @@ words:
- mxschmitt - mxschmitt
- nala - nala
- noconfirm - noconfirm
- nodistro
- noprogressbar - noprogressbar
- nothrow - nothrow
- npmrc - npmrc
@ -85,6 +84,7 @@ words:
- Trofimovich - Trofimovich
- tsbuildinfo - tsbuildinfo
- ucrt - ucrt
- untildified
- untildify - untildify
- upleveled - upleveled
- vbatts - vbatts
@ -92,6 +92,7 @@ words:
- VCPKG - VCPKG
- vcvarsall - vcvarsall
- venv - venv
- venvs
- visualc - visualc
- visualcpp - visualcpp
- vsversion - 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) { if (isPipx && user) {
const pipxHome = await getPipxHome() const pipxHome = await getPipxHome()
await mkdirp(pipxHome) await mkdirp(pipxHome)
await mkdirp(join(pipxHome, "trash"))
await mkdirp(join(pipxHome, "shared"))
await mkdirp(join(pipxHome, "venv"))
// install to user home // install to user home
env.PIPX_HOME = pipxHome env.PIPX_HOME = pipxHome