I have a PyDev project in eclipse consisting of a "src" directory and an "rsc" directory.
I would like to read/write files in the "rsc" dir. If i give for example the following command in .py file in the "src" dir:
numpy.savetxt("rsc/test.txt", temp, fmt='%3.15f', delimiter=' ')
I get an error saying "No such file: rsc/test.txt", (Giving the absolute path (i-e "home/.../test.txt") works.)
This works for java projects. How can I do this for python projects? Is this problem specific to eclipse?
To clarify, my dir structure is as follows: proj_dir -> src -> file.py, proj_dir -> rsc -> test.txt I am running a file in src e-g "file.py"