SCons: How do I import a Python module into SConscript that was called with VariantDir?
My assembly is structured like this:
SConstruct subdir/SConscript subdir/module/__init__.py
as a child:
# SConstruct SConscript('subdir/SConscript')
# subdir/SConscript from module import foo do SConsy stuff with foo()...
This works great until I use it
# SConstruct SConscript('subdir/SConscript', variant_dir='subdir/build', duplicate=0)
The problem is what
is failing because it is
no longer in the path that was changed to
Is there a standard way to solve this problem in SCons or Python? I am aware of a special directory
, but it seems that this directory must exist at the top level with the root
and I would like to store the
-special files in
source to share