]> spindle.queued.net Git - midori/commitdiff
Use absolute path to generate locale symlinks for --run
authorChristian Dywan <christian@twotoasts.de>
Mon, 25 May 2009 16:18:29 +0000 (18:18 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 25 May 2009 16:18:29 +0000 (18:18 +0200)
wscript

diff --git a/wscript b/wscript
index 98f85bb549d6607b34e76db941ef0b9271a38a3f..12d3d13cba8bae5a2e249ec7c719c7a1e8b4e2d1 100644 (file)
--- a/wscript
+++ b/wscript
@@ -396,12 +396,12 @@ def shutdown ():
     elif Options.options.run:
         folder = os.path.dirname (Build.bld.env['waf_config_files'][0])
         try:
-            folder = os.path.relpath (folder)
+            relfolder = os.path.relpath (folder)
         except:
             pass
         try:
-            ext = 'MIDORI_EXTENSION_PATH=' + folder + os.sep + 'extensions'
-            nls = 'NLSPATH=' + folder + os.sep + 'po'
+            ext = 'MIDORI_EXTENSION_PATH=' + relfolder + os.sep + 'extensions'
+            nls = 'NLSPATH=' + relfolder + os.sep + 'po'
             lang = os.environ['LANG']
             try:
                 for lang in os.listdir (folder + os.sep + 'po'):
@@ -417,7 +417,7 @@ def shutdown ():
                         'LC_MESSAGES' + os.sep + APPNAME + '.mo')
             except:
                 pass
-            command = folder + os.sep + APPNAME + os.sep + APPNAME
+            command = relfolder + os.sep + APPNAME + os.sep + APPNAME
             print ext + ' ' + nls + ' ' + command
             Utils.exec_command (ext + ' ' + nls + ' ' + command)
         except: