Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55364

Re: Running code from source that includes extension modules

From "Gisle Vanem" <gvanem@yahoo.no>
References <CABdB9Z4rvKmO0bdZrmBd4Cy6b1OJyzkFMNpwmrR=k55J1X39wg@mail.gmail.com>
Subject Re: Running code from source that includes extension modules
Date 2013-10-02 19:15 +0200
Newsgroups comp.lang.python
Message-ID <mailman.642.1380734259.18130.python-list@python.org> (permalink)

Show all headers | View raw


"Michael Schwarz" <michi.schwarz@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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Running code from source that includes extension modules "Gisle Vanem" <gvanem@yahoo.no> - 2013-10-02 19:15 +0200

csiph-web