[Scons-users] Problem upgrading from 3.0.1 to 3.1.2
Mats Wichmann
mats at wichmann.us
Thu May 14 12:32:18 EDT 2020
On 5/14/20 10:14 AM, Steve Hill (Wireless) via Scons-users wrote:
> Thanks. I have got to the bottom of it.
>
>
>
> I am calling subst_list to get the list of paths (in $SOURCES, for
> instance) and assumed that returned strings. It actually returns a
> sequence of CmdStringHolder objects, which do not behave like strings
> when passed to os.path.splitdrive – in fact they result in an exception
> being thrown: ‘expected str, bytes or os.PathLike object, not
> CmdStringHolder’
>
>
>
> Furthermore, it seems that, surprisingly, if an exception is thrown in
> the call, SCons doesn’t complain – it just ignores that the call even
> happened and simply stringifies the object instead. IMHO, this is
> questionable behaviour.
who's calling os.path.splitdrive? is that scons, or you?
as a Python library function, it won't know about SCons defined
datatypes, though CmdStringHolder is just a specialization of
collections.UserString...
More information about the Scons-users
mailing list