Fix waf --run inside an example subdir
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Tue, 17 Apr 2012 11:26:31 +0100
changeset 7855 015c4b6a0e07
parent 7854 11a0d1ab13b4
child 7856 71b642707bef
Fix waf --run inside an example subdir
wutils.py
--- a/wutils.py	Sat Apr 14 18:11:17 2012 -0700
+++ b/wutils.py	Tue Apr 17 11:26:31 2012 +0100
@@ -58,7 +58,7 @@
 
         ## 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