Utilizing multiple python projects

Posted by Marcin Cylke on Stack Overflow See other posts from Stack Overflow or by Marcin Cylke
Published on 2010-06-08T20:13:02Z Indexed on 2010/06/08 20:22 UTC
Read the original article Hit count: 202

Filed under:

Hi I have a python app, that I'm developing. There is a need to use another library, that resides in different directory.

The file layout looks like this: dir X has two project dirs:

  • current-project
  • xLibrary

I'd like to use xLibrary in currentProject. I've been trying writting code as if all the sources resided in the same directory and calling my projects main script with:

PYTHONPATH=.:../xLibrary ./current-project.py

but this does not work. I'd like to use its code base without installing the library globaly or copying it to my project's directory. Is it possible? Or if not, how should I deal with this problem.

© Stack Overflow or respective owner

Related posts about python