vista python 2.5.2 fix

This commit is contained in:
Marcos Pinto 2008-04-07 00:18:56 +00:00
commit 35e6059b10

View file

@ -350,13 +350,11 @@ class Manager:
deluge_core.quit() deluge_core.quit()
#kill dbus on windows #kill dbus on windows
import platform if common.windows_check():
if platform.system() == "Windows": if platform.win32_ver()[1] >= 6:
import os os.popen4('taskkill.exe /IM dbus-daemon-deluge.exe /F')
os.popen4('tskill.exe dbus-daemon-deluge') else:
elif platform.system() == "Microsoft": os.popen4('tskill.exe dbus-daemon-deluge')
import os
os.popen4('taskkill.exe /IM dbus-daemon-deluge.exe /F')
def pickle_state(self): def pickle_state(self):
print "save uploaded memory" print "save uploaded memory"