Re: How to have multiple site-dirs

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHHn=kuaP4XwVwEHNy=FmTAQ9+UK5s4qr0vSaeGpK4V-g@mail.gmail.com>
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 <[email protected]> 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
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.