Update import_fixes.py

This commit is contained in:
Daniel Han 2025-12-16 19:51:10 -08:00
commit 7e2a61aab4

View file

@ -427,7 +427,7 @@ def fix_openenv_no_vllm():
# Fix Exeuctorch needing get_mapped_key
def fix_executorch():
if importlib.util.find_spec("executorch") is None:
print(1)
return
executorch_location = importlib.util.find_spec("executorch").origin
if executorch_location is None:
executorch_location = importlib.util.find_spec("executorch").submodule_search_locations[0]