Skip to content

Commit 6bde0ed

Browse files
committed
Use tmp folder in .cache
1 parent 3822bb1 commit 6bde0ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pioinstaller/penv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def create_with_remote_venv(python_exe, penv_dir):
123123
venv_script_path = util.download_file(
124124
VIRTUALENV_URL,
125125
os.path.join(
126-
os.path.dirname(penv_dir), "penv-tmp", os.path.basename(VIRTUALENV_URL)
126+
os.path.dirname(penv_dir), ".cache", "tmp", os.path.basename(VIRTUALENV_URL)
127127
),
128128
)
129129
if not venv_script_path:
@@ -166,7 +166,7 @@ def install_pip(python_exe, penv_dir):
166166

167167
log.debug("Downloading 'get-pip.py' installer...")
168168
get_pip_path = os.path.join(
169-
os.path.dirname(penv_dir), "penv-tmp", os.path.basename(PIP_URL)
169+
os.path.dirname(penv_dir), ".cache", "tmp", os.path.basename(PIP_URL)
170170
)
171171
util.download_file(PIP_URL, get_pip_path)
172172

pioinstaller/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def fetch_portable_python(dst):
6969
log.debug("Downloading portable python...")
7070

7171
archive_path = util.download_file(
72-
url, os.path.join(os.path.join(dst, "penv-tmp"), os.path.basename(url))
72+
url, os.path.join(os.path.join(dst, ".cache", "tmp"), os.path.basename(url))
7373
)
7474

7575
python_dir = os.path.join(dst, "python37")

0 commit comments

Comments
 (0)