mirror of
https://github.com/python/cpython.git
synced 2025-09-08 09:51:34 +00:00
gh-114099 - Add iOS framework loading machinery. (GH-116454)
Co-authored-by: Malcolm Smith <smith@chaquo.com> Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
This commit is contained in:
parent
a557478987
commit
408e127159
22 changed files with 302 additions and 62 deletions
|
@ -8,6 +8,7 @@ import os
|
|||
import os.path
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
from test.support import is_apple_mobile
|
||||
from test.support import os_helper
|
||||
import unittest
|
||||
import sys
|
||||
|
@ -43,6 +44,11 @@ else:
|
|||
global EXTENSIONS
|
||||
for path in sys.path:
|
||||
for ext in machinery.EXTENSION_SUFFIXES:
|
||||
# Apple mobile platforms mechanically load .so files,
|
||||
# but the findable files are labelled .fwork
|
||||
if is_apple_mobile:
|
||||
ext = ext.replace(".so", ".fwork")
|
||||
|
||||
filename = EXTENSIONS.name + ext
|
||||
file_path = os.path.join(path, filename)
|
||||
if os.path.exists(file_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue