File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -849,9 +849,12 @@ def _normalize_fragment_path(base_dir, fragment_path):
849
849
850
850
return fragment_path
851
851
852
- assert os .path .isfile (
853
- ninja_buildfile
854
- ), "Cannot extract linker fragments! Ninja build file is missing!"
852
+ if not os .path .isfile (ninja_buildfile ):
853
+ sys .stderr .write (
854
+ "Error: Missing Ninja build file '%s' for linker fragment extraction\n "
855
+ % ninja_buildfile
856
+ )
857
+ env .Exit (1 )
855
858
856
859
result = []
857
860
with open (ninja_buildfile , encoding = "utf8" ) as fp :
@@ -1651,8 +1654,7 @@ def _create_venv(venv_dir):
1651
1654
1652
1655
1653
1656
def get_python_exe ():
1654
- python_exe_path = str (Path (get_idf_venv_dir ()) / ("Scripts" if IS_WINDOWS else "bin" ) / ("python" + (".exe" if IS_WINDOWS else "" )))
1655
-
1657
+ python_exe_path = get_executable_path (get_idf_venv_dir (), "python" )
1656
1658
if not os .path .isfile (python_exe_path ):
1657
1659
sys .stderr .write ("Error: Missing Python executable file `%s`\n " % python_exe_path )
1658
1660
env .Exit (1 )
You can’t perform that action at this time.
0 commit comments