From b47ee725fdb4b6bcff6865a7350ad4c49408c5d0 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 17 May 2009 13:07:15 +0200 Subject: [PATCH] Catch non-existance of os.path.relpath --- wscript | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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' -- 2.39.5