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 ('..') os.chdir ('..')
elif Options.options.run: elif Options.options.run:
folder = os.path.dirname (Build.bld.env['waf_config_files'][0]) folder = os.path.dirname (Build.bld.env['waf_config_files'][0])
try:
folder = os.path.relpath (folder) folder = os.path.relpath (folder)
except:
pass
try: try:
ext = 'MIDORI_EXTENSION_PATH=' + folder + os.sep + 'extensions' ext = 'MIDORI_EXTENSION_PATH=' + folder + os.sep + 'extensions'
nls = 'NLSPATH=' + folder + os.sep + 'po' nls = 'NLSPATH=' + folder + os.sep + 'po'