Skip to content

Commit acc3d7c

Browse files
authored
Final fix piohome crash with VSC
* remove telemetry * no full git clone * remove advertisings * add intelhex as required * no core packages * install scons and piohome from github * add argcomplete as pip dependencies * scons-local-4.8.1
1 parent ee4f121 commit acc3d7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platformio/package/manager/core.py

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def get_core_package_dir(name, spec=None, auto_install=True):
4848
)
4949
target_path = join(base_pack_dir, "tool-scons.tar.gz")
5050
extract_folder = join(base_pack_dir, "tool-scons")
51+
if not os.path.exists(extract_folder):
52+
os.makedirs(extract_folder)
5153
with request.urlopen(request.Request(url), timeout=15.0) as response:
5254
if response.status == 200:
5355
with open(target_path, "wb") as f:
@@ -73,6 +75,8 @@ def get_core_package_dir(name, spec=None, auto_install=True):
7375
)
7476
target_path = join(base_pack_dir, "contrib-piohome.tar.gz")
7577
extract_folder = join(base_pack_dir, "contrib-piohome")
78+
if not os.path.exists(extract_folder):
79+
os.makedirs(extract_folder)
7680
with request.urlopen(request.Request(url), timeout=15.0) as response:
7781
if response.status == 200:
7882
with open(target_path, "wb") as f:

0 commit comments

Comments
 (0)