[C++-sig] Pyste default module names erroneously include path

Nicodemus nicodemus at esss.com.br
Fri May 28 03:51:54 CEST 2004


Hi Paul,

paul.bridger wrote:

> When I run pyste from a parent directory to the target pyste file, and 
> don't specify the module name (eg. >pyste.py foo/bar.pyste), pyste 
> calculates the module name incorrectly as foo/bar.
>
> /* bar.cpp */
> BOOST_PYTHON_MODULE(foo/bar)
>
> I'm not sure if it matters, but this is done from a python build script:
> os.system('pyste.py --cache-dir=cache --pyste-ns=__hidden %s' % 
> (filename,))
>

I guess Pyste could be fixed to produce something more appropriate, but 
I think demanding the users to specify the module name is not that bad 
too. 8)

Regards,
Nicodemus.




More information about the Cplusplus-sig mailing list