]> spindle.queued.net Git - midori/commitdiff
Catch non-existance of os.path.relpath
authorChristian Dywan <christian@twotoasts.de>
Sun, 17 May 2009 11:07:15 +0000 (13:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 17 May 2009 11:07:15 +0000 (13:07 +0200)
wscript

diff --git a/wscript b/wscript
index fd31663e871d3e95689cf4a61aec8c0c0427db73..98f85bb549d6607b34e76db941ef0b9271a38a3f 100644 (file)
--- a/wscript
+++ b/wscript
@@ -395,7 +395,10 @@ def shutdown ():
         os.chdir ('..')
     elif Options.options.run:
         folder = os.path.dirname (Build.bld.env['waf_config_files'][0])
-        folder = os.path.relpath (folder)
+        try:
+            folder = os.path.relpath (folder)
+        except:
+            pass
         try:
             ext = 'MIDORI_EXTENSION_PATH=' + folder + os.sep + 'extensions'
             nls = 'NLSPATH=' + folder + os.sep + 'po'