[Scons-users] Problem upgrading from 3.0.1 to 3.1.2

Steve Hill (Wireless) Steve.Hill1 at viavisolutions.com
Thu May 14 12:39:31 EDT 2020


>> who's calling os.path.splitdrive?  is that scons, or you?

Me, in the Cygwinify class (as I have, in some - but not all - cases, to change C:\ to /cygdrive/c/ if it is an absolute path...). I really hate this particular toolchain.

S.

-----Original Message-----
From: Scons-users <scons-users-bounces at scons.org> On Behalf Of Mats Wichmann
Sent: 14 May 2020 17:32
To: scons-users at scons.org
Subject: Re: [Scons-users] Problem upgrading from 3.0.1 to 3.1.2

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...



_______________________________________________
Scons-users mailing list
Scons-users at scons.org
https://urldefense.com/v3/__https://pairlist4.pair.net/mailman/listinfo/scons-users__;!!Aa6LgkyVeQ!9bD3A-EY9yOIaUGVOgx_joqnDjus4u_VyMurl2g_k9IFohN15zizLcWZC_M8d3R9wffZXZWI$ 


More information about the Scons-users mailing list