[Bf-committers] B.doc_build_dir[-1]

Timothy Baldridge tbaldridge at gmail.com
Tue Oct 21 20:54:37 CEST 2008


Nevermind, ignore me...I guess Python does...you learn something new everyday...

Timothy

On Tue, Oct 21, 2008 at 12:51 PM, Timothy Baldridge
<tbaldridge at gmail.com> wrote:
> In SConstruct, I get this error:
>
> <type 'exceptions.IndexError'>: string index out of range:
>  File "SConstruct", line 287:
>    if not B.doc_build_dir[-1]==os.sep:
>
>  Is it really possible to do this in Python? Negative subscripts?
> Seems like a lazy hack if anything....
>
> Timothy
>
> --
> Two wrights don't make a rong, they make an airplane. Or bicycles.
>



-- 
Two wrights don't make a rong, they make an airplane. Or bicycles.


More information about the Bf-committers mailing list