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

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