[hamster-applet] Replace os-specific slashes in path with python code



commit 6b9a83276e66aff63fdcaa6128f0fc35e492d28f
Author: Andreas Köhler <andi5 py gmx net>
Date:   Sun May 24 02:20:24 2009 +0100

    Replace os-specific slashes in path with python code
---
 hamster/hamster-applet.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hamster/hamster-applet.py b/hamster/hamster-applet.py
index db6d621..f3d59d9 100755
--- a/hamster/hamster-applet.py
+++ b/hamster/hamster-applet.py
@@ -28,12 +28,12 @@ import gnome
 # Allow to use uninstalled
 def _check(path):
     return os.path.exists(path) and os.path.isdir(path) \
-           and os.path.isfile(path + "/AUTHORS")
+           and os.path.isfile(os.path.join(path, "AUTHORS"))
 
 name = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
 if _check(name):
     print 'Running uninstalled hamster, modifying PYTHONPATH'
-    sys.path.insert(0, os.path.join(name, "hamster", "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



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