Fix waf --run inside an example subdir

Gustavo J. A. M. Carneiro 2012-04-17 11:26:31 +01:00
parent c916021db0
commit f32be2eb6f
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ def find_program(program_name, env):
## filter out programs not in the subtree starting at the launch dir
if not (obj.path.abspath().startswith(launch_dir)
or obj.path.abspath(env).startswith(launch_dir)):
or obj.path.get_bld().abspath().startswith(launch_dir)):
continue
name1 = obj.name