[issue1777530] ctypes on Solaris

Aki report at bugs.python.org
Mon Sep 3 18:55:46 CEST 2007


Aki added the comment:

Hello Thomas,

Thank you for creating the patch.
Unfortunately, it didn't work.
(I rerun the whole installation process)

You used the following to check if the os is Solaris:

if sys.platform.startswith("solaris"):

Under Solaris 2.x sys.platform returns "sunos5".
You could use ...startswith("sunos") but things may be different under
"sunos6" so I usually prefer to use sys.platform == "sunos5".

After fixing this, my application with ctypes works okay.

I'm happy to try out if you create another patch.

Thank you,
Aki-

_____________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1777530>
_____________________________________


More information about the Python-bugs-list mailing list