From 35e6059b102f7976b3af45129377ab5f1df92a73 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Mon, 7 Apr 2008 00:18:56 +0000 Subject: [PATCH] vista python 2.5.2 fix --- src/core.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/core.py b/src/core.py index 725330f99..0f1705240 100644 --- a/src/core.py +++ b/src/core.py @@ -350,13 +350,11 @@ class Manager: deluge_core.quit() #kill dbus on windows - import platform - if platform.system() == "Windows": - import os - os.popen4('tskill.exe dbus-daemon-deluge') - elif platform.system() == "Microsoft": - import os - os.popen4('taskkill.exe /IM dbus-daemon-deluge.exe /F') + if common.windows_check(): + if platform.win32_ver()[1] >= 6: + os.popen4('taskkill.exe /IM dbus-daemon-deluge.exe /F') + else: + os.popen4('tskill.exe dbus-daemon-deluge') def pickle_state(self): print "save uploaded memory"