Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(73479)

Unified Diff: Lib/ctypes/util.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/ctypes/test/test_win32.py ('k') | Lib/distutils/tests/test_build_ext.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/ctypes/util.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/ctypes/util.py Wed Mar 02 00:01:35 2016 +0000
@@ -71,17 +71,17 @@ if os.name == "ce":
# - absolute path specified by filename
# - The .exe launch directory
# - the Windows directory
# - ROM dll files (where are they?)
# - OEM specified search path: HKLM\Loader\SystemPath
def find_library(name):
return name
-if os.name == "posix" and sys.platform == "darwin":
+if os.name == "posix" and sys.platform in ("darwin", "ios"):
from ctypes.macholib.dyld import dyld_find as _dyld_find
def find_library(name):
possible = ['lib%s.dylib' % name,
'%s.dylib' % name,
'%s.framework/%s' % (name, name)]
for name in possible:
try:
return _dyld_find(name)
« no previous file with comments | « Lib/ctypes/test/test_win32.py ('k') | Lib/distutils/tests/test_build_ext.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+