[nanny] Add w32 paths to nanny-systray
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Add w32 paths to nanny-systray
- Date: Sun, 23 Jan 2011 18:08:39 +0000 (UTC)
commit 350c1e76835001769328fc080178ca94c368ea82
Author: Roberto Majadas <roberto majadas openshine com>
Date: Mon Jan 17 20:38:23 2011 +0100
Add w32 paths to nanny-systray
client/gnome/systray/nanny-systray | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/client/gnome/systray/nanny-systray b/client/gnome/systray/nanny-systray
index 7e60447..792a779 100644
--- a/client/gnome/systray/nanny-systray
+++ b/client/gnome/systray/nanny-systray
@@ -18,10 +18,20 @@
# USA
import os
+import sys
import gtk
import gettext
import __builtin__
+if os.name == "nt" :
+ if not hasattr(sys, "frozen") :
+ root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ nanny_lib_path = os.path.join(root_path, "lib", "python2.6", "site-packages")
+ sys.path.append(nanny_lib_path)
+ else:
+ sys.stdout = open(os.devnull, 'w')
+ sys.stderr = open(os.devnull, 'w')
+
import nanny.client.gnome.systray
#parser = OptionParser()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]