We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca44bd commit aeb5883Copy full SHA for aeb5883
get-platformio.py
pioinstaller/pack/template.py
@@ -27,8 +27,10 @@
27
28
def create_temp_dir():
29
try:
30
- cur_dir = os.path.dirname(os.path.realpath(__file__))
31
- tmp_dir = tempfile.mkdtemp(dir=cur_dir, prefix=".piocore-installer-")
+ parent_dir = os.getenv(
+ "PLATFORMIO_INSTALLER_TMPDIR", os.path.dirname(os.path.realpath(__file__))
32
+ )
33
+ tmp_dir = tempfile.mkdtemp(dir=parent_dir, prefix=".piocore-installer-")
34
testscript_path = os.path.join(tmp_dir, "test.py")
35
with open(testscript_path, "w") as fp:
36
fp.write("print(1)")
0 commit comments