[hamster-applet] cleanup



commit bb61397a7fa9e9260217c7431f7792f1abae79dd
Author: Toms Bauģis <toms baugis gmail com>
Date:   Thu May 27 00:18:37 2010 +0100

    cleanup

 src/hamster-service |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/src/hamster-service b/src/hamster-service
index 037f7b2..a0507d2 100755
--- a/src/hamster-service
+++ b/src/hamster-service
@@ -1,10 +1,8 @@
 #!/usr/bin/python
 # nicked off gwibber
 
-import os, sys, gobject, dbus
-
+import gobject, dbus
 from dbus.mainloop.glib import DBusGMainLoop
-import locale, gettext
 
 DBusGMainLoop(set_as_default=True)
 loop = gobject.MainLoop()
@@ -14,19 +12,10 @@ if "org.gnome.Hamster" in dbus.SessionBus().list_names():
     quit()
 
 
-LAUNCH_DIR = os.path.abspath(sys.path[0])
-SOURCE_DIR = LAUNCH_DIR
-STORAGE = os.path.join(SOURCE_DIR, "hamster", "storage.py")
-
 if __name__ == '__main__':
     from hamster import stuff
     stuff.setup_i18n()
 
-    # adjust path if running from source
-    if os.path.exists(SOURCE_DIR):
-        sys.path.insert(0, os.path.realpath(os.path.dirname(SOURCE_DIR)))
-
-
     from hamster import db
     print "hamster-service up"
 



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