From: Christian Dywan Date: Sun, 17 May 2009 11:07:15 +0000 (+0200) Subject: Catch non-existance of os.path.relpath X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b47ee725fdb4b6bcff6865a7350ad4c49408c5d0;p=midori Catch non-existance of os.path.relpath --- diff --git a/wscript b/wscript index fd31663e..98f85bb5 100644 --- 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'