Catch non-existance of os.path.relpath

This commit is contained in:
Christian Dywan 2009-05-17 13:07:15 +02:00
parent eaaed697bf
commit b47ee725fd

View file

@ -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'