Stefan Arentz wrote:
>
> Hi. I've wrapped a C++ class with Boost.Python and that works great. But,
> I am now packaging my application so that it can be distributed. The
> structure is basically this:
>
> .../bin/foo.py
> .../lib/foo.so
> .../lib/bar.py
>
> In foo.py I do the following:
>
>
Hi. I've wrapped a C++ class with Boost.Python and that works great. But, I
am now packaging my application so that it can be distributed. The structure
is basically this:
.../bin/foo.py
.../lib/foo.so
.../lib/bar.py
In foo.py I do the following:
sys.path.append(os.path.dirname(sys.path[0])