Author: jerome Date: 2009-12-17 09:55:27 +0100 (Thu, 17 Dec 2009) New Revision: 5995
Modified: software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py Log: * Fixed Skype process check function ( windows ). 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-17 08:37:56 UTC (rev 5994) +++ software_suite_v3/software/plugin/plugin-skype/branches/in_out_plugin/executables/utils.py 2009-12-17 08:55:27 UTC (rev 5995) @@ -82,9 +82,12 @@ from win32com.client import GetObject WMI = GetObject('winmgmts:') processes = WMI.InstancesOf('Win32_Process') - return ( "skype.exe" in processes ) or ( 'Skype.exe' in processes ) - except: + for process in processes: + if process.name in ['skype.exe', 'Skype.exe']: + return True return False + except Exception, e: + return False # -------------------------------------------------------------------------- # Start skype on linux. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Tux-droid-svn mailing list Tux-droid-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tux-droid-svn