// On some platforms (Windows, Debian/Ubuntu) "_struct" module is a built-in module (linked statically)
// and thus does not have attribute __file__.
// TODO verify this __file__ check on windows.
if hasattr(mod1, "__file__"):
loader_mods =[("_struct", os.path.abspath(mod1.__file__), "EXTENSION")]
loader_mods +=[
("struct", os.path.abspath(mod2.__file__), "PYMODULE"),
("pyi_os_path", os.path.join(loaderpath, "pyi_os_path.pyc"), "PYMODULE"),
("pyi_archive", os.path.join(loaderpath, "pyi_archive.pyc"), "PYMODULE"),