Catch non-existance of os.path.relpath
This commit is contained in:
parent
eaaed697bf
commit
b47ee725fd
1 changed files with 4 additions and 1 deletions
3
wscript
3
wscript
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue