I am having problems with PythonPath on Windows XP, and I am wondering if I am doing something wrong.
Say I have a project (created with Pydev) that has an src directory. In src , I have one package named common , and in it there is one class module named service.py with the class name Service
Say now that I have another project (also created using Pydev) with the src directory and shared package. In the general package, I have one script, client.py , which imports the service.
Thus, in other words, two separate disk space, but the same package.
I noticed that even if I set my PYTHONPATH to include both src directories, the import will fail if the files are not in the same directory. I get a scary module.
I don't understand how python resolves module names? I'm used to Java and its infernal class.
source share