Running code from source that includes extension modules
Gisle Vanem
gvanem at yahoo.no
Wed Oct 2 13:15:31 EDT 2013
"Michael Schwarz" <michi.schwarz at gmail.com> wrote:
> So how do I run my code so it will find the built extension module? Do I
> pass the output directory on the command line manually or is there some
> other solution? I would like to still be able to run the code from the
> source directory as I'm using PyCharm to edit and debug the code.
Doesn't Python on Linux (I assume that since you mentioned the module's .so)
support having current-dir '.' in $PYTHONPATH? Works fine on Windows.
Check with "python -v script.py | grep <your .so>".
--gv
More information about the Python-list
mailing list