diff -r 9d66d323c354 -r 9af5c039b678 models/SConscript --- a/models/SConscript Fri May 02 13:27:47 2008 +0200 +++ b/models/SConscript Mon May 05 15:31:14 2008 +0200 @@ -1,15 +1,18 @@ -env = Environment() -env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)}) +Import('env') + +myenv = Environment() +myenv.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)}) files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj'] l = [] for file in files: - l.append( env.Copy('#build/models/'+file, file) ) + l.append( myenv.Copy('#build/models/'+file, file) ) env.Alias('local-models', l) plydir = Dir('#build/models/ply/') -Command(plydir, [], Dir('#models/').abspath+'/download-stanford $TARGET') +import os +env.Command(plydir, [], '"'+Dir('#models/').abspath+os.sep+'download-stanford" $TARGET') Clean(plydir, plydir) env.Alias('download-models', plydir)