Shorten the paths used for --run to make them more easily reusable

This commit is contained in:
Christian Dywan 2009-05-15 20:30:24 +02:00
parent 396c477f2d
commit 3395d0a0f2

View file

@ -395,6 +395,7 @@ 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])
folder = os.path.relpath (folder)
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'