[tuxdroid-svn] r5948 - software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/execut
Status: Beta
Brought to you by:
ks156
From: jerome <c2m...@c2...> - 2009-12-08 10:47:22
|
Author: jerome Date: 2009-12-08 11:47:09 +0100 (Tue, 08 Dec 2009) New Revision: 5948 Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py Log: * Added return statement. Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py =================================================================== --- software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py 2009-12-08 10:45:38 UTC (rev 5947) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py 2009-12-08 10:47:09 UTC (rev 5948) @@ -65,11 +65,14 @@ ''' Check for Skype client process. ''' - from win32com.client import GetObject - WMI = GetObject('winmgmts:') - processes = WMI.InstancesOf('Win32_Process') - return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes ) - + try: + from win32com.client import GetObject + WMI = GetObject('winmgmts:') + processes = WMI.InstancesOf('Win32_Process') + return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes ) + except: + return False + def __start_skype_linux__(self): ''' |