[Bf-committers] Scons can't define strings with spaces

Tom Edwards contact at steamreview.org
Wed Jan 26 21:39:20 CET 2011


It's me, not Lars. That line gives "SyntaxError: unexpected character 
after line continuation character" because double quotes means a 
zero-character string, and so everything following it is interpreted by 
Python.

On 26/01/2011 8:01, Sergey Kurdakov wrote:
> Hi  Lars,
>
>>> env['RCFLAGS'].append("-DTEST=\"a space\"")
>>> env['RCFLAGS'].append("-DTEST=\"nospace\"")
>>>
>>> Gives:
>>>
>>> windres "-DTEST="a space"" -DTEST="nospace"
> among scons docs there is a phrase:
>
>
> string surrounded by double quotation marks is interpreted as a single
> argument, regardless of white space contained within
>
> so
>   env['RCFLAGS'].append(""-DTEST=\"a space\""")
>
> might be what you are looking for ( not tested though )
>
> Regards
> Sergey
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list