Fix OSL shader build failing with spaces in the path to build directory,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 9 Oct 2013 18:48:32 +0000 (18:48 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Wed, 9 Oct 2013 18:48:32 +0000 (18:48 +0000)
patch by Campbell.

intern/cycles/kernel/shaders/SConscript

index aad6e23e4d46ed008878ae35a664dbb006526d78..12143e7f6e955df61851ba0e62268f92ecfd2c66 100644 (file)
@@ -57,7 +57,7 @@ if env['WITH_BF_CYCLES_OSL']:
             osl_file = os.path.join(source_dir, f)
             oso_file = os.path.join(build_dir, f.replace('.osl', '.oso'))
 
-            command = "%s -q -O2 -I%s -o %s %s" % (osl_compiler, source_dir, oso_file, osl_file)
+            command = [osl_compiler, "-q", "-O2", "-I", source_dir, oso_file, osl_file]
 
             shaders.Command(oso_file, f, command)
             shaders.Depends(oso_file, [f] + dependencies)