OSDN Git Service

Changed to specify absolute path of gwit.glade file
authorHirotaka Kawata <hktechno@hotmail.com>
Sun, 28 Feb 2010 15:18:04 +0000 (00:18 +0900)
committerHirotaka Kawata <hktechno@hotmail.com>
Sun, 28 Feb 2010 15:18:04 +0000 (00:18 +0900)
gwit

diff --git a/gwit b/gwit
index bcfeda5..7217c70 100755 (executable)
--- a/gwit
+++ b/gwit
@@ -27,8 +27,8 @@ if __name__ == "__main__":
    confp = SafeConfigParser()
    
    # Config file absolute path
-   conf_path = os.path.join(
-      os.path.dirname(__file__), "gwit.conf")
+   gwitpath = os.path.dirname(__file__)
+   conf_path = os.path.join(gwitpath, "gwit.conf")
    
    # config file exist?
    if os.path.isfile(conf_path):
@@ -70,7 +70,7 @@ if __name__ == "__main__":
            settings[user]["atoken"], settings[user]["asecret"])
    
    # Run Main()
-   gladefile = "gwit.glade"
+   gladefile = os.path.join(gwitpath, "gwit.glade")
    if options.max and int(options.max) <= 200:
       maxn = int(options.max)
    else: