Use /proc/sef instead of /proc/getpid()

This commit is contained in:
Kovid Goyal 2017-10-20 10:57:06 +05:30
parent 6c9615df0d
commit 4f6084c9f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -79,7 +79,7 @@ if ctypes.sizeof(GLint) != 4:
def get_glfw_lib_name():
try:
for line in open('/proc/{}/maps'.format(os.getpid())):
for line in open('/proc/self/maps'):
lib = line.split()[-1]
if '/libglfw.so' in lib:
return lib