Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
I have a problem. I can´t open file with relative paths (with absolute path works, but I need it be relative).
My Project structure is that:
| |_peticionAzureus2.xml(file I want to open)
I try to open the file in module tratarPeticiones.py in this way:
src = './temp/%s' %self.nomPet
petDoc = xml.dom.minidom.parse(src)
I think the relative path is correct, but when I try to run the program, it throw me an IOError.
The PYTHONPATH it's set in this way:
What do I do wrong?
(excuse me for my bad english)
Well, actually, I don't think this has anything to do with pydev...
I think that your current working dir is not suitable for that (so, you have to specify your working dir -- in pydev, the working dir is the Base Directory, on the arguments tab, in the run dialog)
You can check it from python if you do: