dl module commit rocks, just put a comment, do it only in POSIX, pythonify (space after comma and all that stuff)

This commit is contained in:
Nikos Kouremenos 2006-08-29 21:59:58 +00:00
parent 8f5dbaa1d1
commit 13a50ad633
1 changed files with 7 additions and 6 deletions

View File

@ -41,12 +41,13 @@ from chat_control import ChatControlBase
from common import exceptions from common import exceptions
try: if os.name == 'posix': # dl module is Unix Only
import dl try: # rename the process name to gajim
libc = dl.open('/lib/libc.so.6') import dl
libc.call('prctl',15,'gajim\0',0,0,0) libc = dl.open('/lib/libc.so.6')
except: libc.call('prctl', 15, 'gajim\0', 0, 0, 0)
pass except:
pass
try: try:
import gtk import gtk