|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2006-05-17 09:15:57
On Wednesday 17 May 2006 17:05, Michael Krasnyk wrote:
> Hello Vladimir,
>
> >Or do you want to set EXTRA_PYTHONPATH? Then, use this in your Jamfile:
> >
> > module
> > {
> > EXTRA_PYTHONPATH = . ;
> > }
>
> Thank you, now it works.
>
> Sorry for newbie question, but what is the difference
> between
>
> module {
> EXTRA_PYTHONPATH = . ;
> }
> PYTHON_IMPORT_RULE aaa : foo : Python : foo ;
>
> and
>
> EXTRA_PYTHONPATH = . ;
> PYTHON_IMPORT_RULE aaa : foo : Python : foo ;
>
> The first case works ok, but the second fails with Python error
> "ImportError: No module named aaa"?
The first case temporary switches the the global module, and sets variable in
the global module. The second sets the variable in the module corresponding
to Jamfile.
- Volodya
-- Vladimir Prus http://vladimir_prus.blogspot.com Boost.Build V2: http://boost.org/boost-build2
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk