Re: Running code from source that includes extension modules

Discussion in 'Python' started by Gisle Vanem, Oct 2, 2013.

  1. Gisle Vanem

    Gisle Vanem Guest

    "Michael Schwarz" <> 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
    Gisle Vanem, Oct 2, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anand
    Replies:
    3
    Views:
    891
    Tim Daneliuk
    Nov 8, 2003
  2. Satabdi Mukherjee
    Replies:
    1
    Views:
    572
    Terry Jan Reedy
    Apr 4, 2013
  3. Michael Schwarz
    Replies:
    0
    Views:
    135
    Michael Schwarz
    Oct 2, 2013
  4. Stefan Behnel
    Replies:
    0
    Views:
    126
    Stefan Behnel
    Oct 2, 2013
  5. Oscar Benjamin
    Replies:
    0
    Views:
    106
    Oscar Benjamin
    Oct 3, 2013
Loading...

Share This Page