hamster-applet r695 - trunk/hamster



Author: tbaugis
Date: Wed Feb  4 22:13:14 2009
New Revision: 695
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=695&view=rev

Log:
set the path for the uninstalled case properly

Modified:
   trunk/hamster/hamster-applet.py

Modified: trunk/hamster/hamster-applet.py
==============================================================================
--- trunk/hamster/hamster-applet.py	(original)
+++ trunk/hamster/hamster-applet.py	Wed Feb  4 22:13:14 2009
@@ -35,11 +35,11 @@
     return os.path.exists(path) and os.path.isdir(path) \
            and os.path.isfile(path + "/AUTHORS")
 
-name = os.path.join(os.path.dirname(__file__), '..')
+name = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
 if _check(name):
     print 'Running uninstalled hamster, modifying PYTHONPATH'
-    sys.path.insert(0, '..')
-    sys.path.insert(0, 'keybinder/.libs')
+    sys.path.insert(0, os.path.join(name, "hamster", "keybinder/.libs"))
+    sys.path.insert(0, name)
 
 # Now the path is set, import our applet
 import hamster.defs



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]