[Scons-users] How to have multiple site-dirs

Bill Deegan bill at baddogconsulting.com
Sat Aug 27 16:23:21 EDT 2022


If the goal is just to load tools from all those site_scons/site_tools,
you can just append all those site_tools paths to sys.path.
Then SCons should find those by default.
That should be simpler.


On Sat, Aug 27, 2022 at 7:07 AM Mats Wichmann <mats at wichmann.us> wrote:

>
> On 8/27/22 01:36, Erik Kazandjian wrote:
> > I think I found the solution. I just created extra directories under
> > site_tools and in my SConstruct I call env.Tool(dir.toolname) that seems
> > to work. Is this the way to go?
> >
> > Thanks
> > Erik
>
> That's fine, it's a supported model (basically, it's just like Python
> importing)
>
> I had to hunt a bit for where it says so, it's at the end of:
>
> https://scons.org/doc/production/HTML/scons-man.html#tool_modules
>
> "Tools can be "nested" - that is, they can be located within a
> subdirectory in the toolpath. A nested tool name uses a dot to represent
> a directory separator"
>
>
> You might also be able to help organize things by using a toolpath.
> _______________________________________________
> 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/20220827/48c433f7/attachment.htm>


More information about the Scons-users mailing list