File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ 0.20.3
2+ ======
3+
4+ * Ensure relenv data directory always exists
5+
6+
170.20.2
28======
39
Original file line number Diff line number Diff line change 1818import time
1919
2020# relenv package version
21- __version__ = "0.20.2 "
21+ __version__ = "0.20.3 "
2222
2323MODULE_DIR = pathlib .Path (__file__ ).resolve ().parent
2424
@@ -227,6 +227,7 @@ def get_toolchain(arch=None, root=None):
227227 :return: The directory holding the toolchain
228228 :rtype: ``pathlib.Path``
229229 """
230+ os .makedirs (DATA_DIR , exist_ok = True )
230231 if sys .platform != "linux" :
231232 return DATA_DIR
232233
@@ -243,7 +244,6 @@ def get_toolchain(arch=None, root=None):
243244 pass
244245
245246 if ppbt :
246- DATA_DIR .mkdir (exist_ok = True )
247247 TOOLCHAIN_ROOT .mkdir (exist_ok = True )
248248 ppbt .common .extract_archive (str (TOOLCHAIN_ROOT ), str (ppbt .common .ARCHIVE ))
249249 return TOOLCHAIN_PATH
You can’t perform that action at this time.
0 commit comments