Fixed LD_PRELOAD bug by forcing the global symbol table load.
[python-purple] / nullclient.py
index 8c7cb6b..2dbbda0 100644 (file)
 #
 
 import getpass
-import purple
-import sys
+import sys, dl
 import time
 
+sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
+
+import purple
+
 # The information below is needed by libpurple
 __NAME__ = "nullclient"
 __VERSION__ = "0.1"