Created
September 21, 2013 22:55
-
-
Save jimbaker/6654969 to your computer and use it in GitHub Desktop.
Jython currently does not expose sysconf info from jnr-posix. Here's a workaround.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jnr.posix import POSIXFactory | |
from org.python.modules.posix import PythonPOSIXHandler | |
from jnr.constants.platform import Sysconf | |
posix = POSIXFactory.getPOSIX(PythonPOSIXHandler(), True) | |
print posix.sysconf(Sysconf._SC_SEMAPHORES) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment