Use absolute path to generate locale symlinks for --run
This commit is contained in:
parent
9e5d50a7a5
commit
4897dc9da5
1 changed files with 4 additions and 4 deletions
8
wscript
8
wscript
|
@ -396,12 +396,12 @@ def shutdown ():
|
||||||
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:
|
try:
|
||||||
folder = os.path.relpath (folder)
|
relfolder = os.path.relpath (folder)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
ext = 'MIDORI_EXTENSION_PATH=' + folder + os.sep + 'extensions'
|
ext = 'MIDORI_EXTENSION_PATH=' + relfolder + os.sep + 'extensions'
|
||||||
nls = 'NLSPATH=' + folder + os.sep + 'po'
|
nls = 'NLSPATH=' + relfolder + os.sep + 'po'
|
||||||
lang = os.environ['LANG']
|
lang = os.environ['LANG']
|
||||||
try:
|
try:
|
||||||
for lang in os.listdir (folder + os.sep + 'po'):
|
for lang in os.listdir (folder + os.sep + 'po'):
|
||||||
|
@ -417,7 +417,7 @@ def shutdown ():
|
||||||
'LC_MESSAGES' + os.sep + APPNAME + '.mo')
|
'LC_MESSAGES' + os.sep + APPNAME + '.mo')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
command = folder + os.sep + APPNAME + os.sep + APPNAME
|
command = relfolder + os.sep + APPNAME + os.sep + APPNAME
|
||||||
print ext + ' ' + nls + ' ' + command
|
print ext + ' ' + nls + ' ' + command
|
||||||
Utils.exec_command (ext + ' ' + nls + ' ' + command)
|
Utils.exec_command (ext + ' ' + nls + ' ' + command)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue