From 92d94aec004804b07da8db80cc5fb9a1ec77d566 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 8 Sep 2006 22:33:23 +0000 Subject: [PATCH] require pywin32 or gajim doesn't start. Fixes #2393 --- src/gajim.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gajim.py b/src/gajim.py index 959f266df..cd9aa9c18 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -78,6 +78,15 @@ except exceptions.PysqliteNotAvailable, e: pritext = _('Gajim needs PySQLite2 to run') sectext = str(e) +if os.name == 'nt': + try: + import winsound # windows-only built-in module for playing wav + import win32api + import win32con + except: + pritext = _('Gajim needs pywin32 to run') + sectext = _('Please make sure that Pywin32 is installed on your system. You can get it here %s') % 'http://sourceforge.net/project/showfiles.php?group_id=78018' + if pritext: dlg = gtk.MessageDialog(None, gtk.DIALOG_DESTROY_WITH_PARENT | gtk.DIALOG_MODAL,