less nesting
@@ -50,8 +50,9 @@ def get_executable_even_when_embedded():
try:
test_exe(exe)
return exe
-
except FileNotFoundError:
+ pass
+
exe = pathlib.Path(np.__file__).parents[3].joinpath("python")
try:
