Replies: 2 comments 17 replies
-
|
If you look in the manpage, you'll see the following:
It's also mentioned in the user guide here: https://scons.org/doc/production/HTML/scons-user.html#id1462 |
Beta Was this translation helpful? Give feedback.
-
|
Tool modules have funny importing under the covers, if their particular approach happens to fit your use case, you might be able to make use of a tool. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello! When you run
sconsyourSConstructfile doesn't need to explicitly load all theSConsmodules. The same is with all other files called throughSConscriptbut if I import another module I need to explicitly importSConsparts which I need.Is there any function like
Import("module")?(I know
Importname is already occupied just an example). I know there isExportandImportwhich allows to pass values between files called withSConscriptbut I need to import everything from there. I want to replace aimport moduletoImport("module")and do thenmodule.my_func()like it was just normal module loading. Is there something like it? Or do you have any ideas how to do it in another way?Beta Was this translation helpful? Give feedback.
All reactions