ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/SConscript
(Generate patch)

Comparing ray/test/SConscript (file contents):
Revision 1.1 by schorsch, Fri Dec 26 17:00:32 2008 UTC vs.
Revision 1.2 by schorsch, Thu Mar 10 01:49:56 2016 UTC

# Line 9 | Line 9 | def run_tests(target=None,source=None,env=None):
9          try:
10                  oldenv = env['ENV']
11                  ray = os.getcwd()
12 <                up, cur = os.path.split(ray)
13 <                bin = os.path.join(up, 'bin')
14 <                lib = os.path.join(up, 'lib')
12 >                bin = Dir(env['RAD_BUILDBIN']).get_abspath()
13 >                lib = Dir(env['RAD_BUILDLIB']).get_abspath()
14 >
15                  test = os.path.join(ray, 'test')
16                  if not test in sys.path:
17                          sys.path.append(test)
18                  oldpath = oldenv.get('PATH')
19 <                print oldpath
19 >                #print oldpath
20                  newpath = os.pathsep.join((bin, oldpath))
21                  newenv = {'PATH' : newpath, 'RAYPATH':lib }
22                  env['ENV'] = newenv
23 <                run_all.main()
23 >                run_all.main(bindir=bin)
24          finally:
25                  env['ENV'] = oldenv
26  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines