[Scons-users] SCons, Python 3, and pathlib

Bill Deegan bill at baddogconsulting.com
Tue Jul 25 10:45:25 EDT 2017


SCons is py2 + py3, so we cannot use pathlib in the core.

Which file are you trying to find the path of?
The SConstruct file?
Some other file?

On Tue, Jul 25, 2017 at 2:18 AM, Russel Winder <russel at winder.org.uk> wrote:

> Now that SCons runs on Python 3, it is (at least in principle) feasible
> to use pathlib instead of all the os and os.path fiddling. However, it
> seems that the __file__ symbol is not defined in a SConstruct file, and
> Path(__file__) seems the idiomatic way of getting a path to the
> SConstruct file. Is there a SCons way of getting the path to the
> current location of this file?
>
> --
> Russel.
> ============================================================
> =================
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170725/43405673/attachment.html>


More information about the Scons-users mailing list