Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2007-12-06 22:07:43 +0300
committerYann Leboulanger <asterix@lagaule.org>2007-12-06 22:07:43 +0300
commite2e59d3c2b1ca5323d57dd501f4e70671df5519e (patch)
tree4edc19c782b5ab34d0083a00e57ea2fdf2a18fe6
parentd1207a40a8354c7235cf5cfa6a3106cd8a76f22c (diff)
add windows specific stuff in sources
-rwxr-xr-xsrc/gajim.py19
-rwxr-xr-xsrc/history_manager.py21
2 files changed, 37 insertions, 3 deletions
diff --git a/src/gajim.py b/src/gajim.py
index 2a71e4147..871653a1a 100755
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -17,8 +17,25 @@
## GNU General Public License for more details.
##
-import sys
import os
+
+if os.name == 'nt':
+ import warnings
+ warnings.filterwarnings(action='ignore')
+
+# Used to create windows installer with GTK included
+# paths = os.environ['PATH']
+# list_ = paths.split(';')
+# new_list = []
+# for p in list_:
+# if p.find('gtk') < 0 and p.find('GTK') < 0:
+# new_list.append(p)
+# new_list.insert(0, 'gtk/lib')
+# new_list.insert(0, 'gtk/bin')
+# os.environ['PATH'] = ';'.join(new_list)
+# os.environ['GTK_BASEPATH'] = 'gtk'
+
+import sys
import urllib
from common import i18n
diff --git a/src/history_manager.py b/src/history_manager.py
index bc4b5d54d..4123b8d24 100755
--- a/src/history_manager.py
+++ b/src/history_manager.py
@@ -16,9 +16,26 @@
## NOTE: some method names may match those of logger.py but that's it
## someday (TM) should have common class that abstracts db connections and helpers on it
## the same can be said for history_window.py
-
+
+import os
+
+if os.name == 'nt':
+ import warnings
+ warnings.filterwarnings(action='ignore')
+
+# Used to create windows installer with GTK included
+# paths = os.environ['PATH']
+# list_ = paths.split(';')
+# new_list = []
+# for p in list_:
+# if p.find('gtk') < 0 and p.find('GTK') < 0:
+# new_list.append(p)
+# new_list.insert(0, 'gtk/lib')
+# new_list.insert(0, 'gtk/bin')
+# os.environ['PATH'] = ';'.join(new_list)
+# os.environ['GTK_BASEPATH'] = 'gtk'
+
import sys
-import os
import signal
import gtk
import time