views:

33

answers:

2

Hello,

I installed eclipse with pydev plugin. I need to run my existing project on eclipse. But there are relative paths to the files inside my code. I expect from eclipse to append relative paths to the project's default directory. Instead, it appends the relative path to the directory where Eclipse is installed. I could not find a way to solve the problem.

Thanks in advance.

A: 

Take a look in the project settings, I've never used Pydev with Eclipse, but you should be able to set where the project is executed at, or paths for references.

Of course there may be a better solution, but hopefully that's some help!

Wayne Werner
I, of course, checked the preferences but I could not find. That's why I asked. But thanks anyway.
Mustafa Zengin
Did you check these settings: http://pydev.org/manual_101_project_conf2.html ?
Wayne Werner
A: 

I finally found out how to do it and I am writing the answer for other people with the same problem. You can find it in Run Configurations or Debug Configurations. Choose "Python Run" and your run configuration from the left and then in the "Arguments" tab in the right side, set your "working directory" as "other" with giving "the path" on which you want to run your code. Thanks for your interest, Wayne btw.

Mustafa Zengin