Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b0b20a10
Commit
b0b20a10
authored
Apr 03, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get ctypes loader working on OSF1 (Tru64)
parent
cbce280d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Lib/ctypes/_loader.py
Lib/ctypes/_loader.py
+4
-1
Lib/ctypes/test/test_loading.py
Lib/ctypes/test/test_loading.py
+1
-1
No files found.
Lib/ctypes/_loader.py
View file @
b0b20a10
...
...
@@ -56,7 +56,10 @@ elif os.name == "posix":
expr
=
'/[^
\
(
\
)
\
s]*li
b
%s
\
.[^
\
(
\
)
\
s]*'
%
name
res
=
re
.
search
(
expr
,
os
.
popen
(
'/sbin/ldconfig -p 2>/dev/null'
).
read
())
if
not
res
:
return
None
cmd
=
'ldd %s 2>/dev/null'
%
sys
.
executable
res
=
re
.
search
(
expr
,
os
.
popen
(
cmd
).
read
())
if
not
res
:
return
None
return
res
.
group
(
0
)
def
_get_soname
(
f
):
...
...
Lib/ctypes/test/test_loading.py
View file @
b0b20a10
...
...
@@ -15,7 +15,7 @@ class LoaderTest(unittest.TestCase):
name
=
"libc.dylib"
elif
sys
.
platform
.
startswith
(
"freebsd"
):
name
=
"libc.so"
elif
sys
.
platform
==
"sunos5"
:
elif
sys
.
platform
in
(
"sunos5"
,
"osf1V5"
)
:
name
=
"libc.so"
elif
sys
.
platform
.
startswith
(
"netbsd"
)
or
sys
.
platform
.
startswith
(
"openbsd"
):
name
=
"libc.so"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment