PyDev console working directory

When I open a PyDev console, the current working directory is my Eclipse folder. How can I configure the console to use the project folder as the current working directory? Can this be set workspace-wide? This question is related, but unhelpful as the directory is hard coded. So far, I've discovered that the Eclipse run configuration variable ${project_loc:/selected project name} cannot be used with Python's os.chdir().


If you go to Windows -> Preferences -> PyDev -> Interpreter, you can configure the PYTHONPATH variable used by Python under Eclipse, and add whatever project directories you want so that they are visible when executing Python inside of Eclipse.

I find it easier to execute my code outside of Eclipse and use better system tools for the PYTHONPATH. And for that matter, just use Emacs or VIM.

In general, though, you don't want to mess with the Eclipse settings that describe the workspace directory. It's better to just append project code locations to the Eclipse/PyDev PYTHONPATH.

Need Your Help

How to place a form on the homepage of a CakePHP application?

php view controller indexing cakephp-1.3

Just begun developing CakePHP. The homepage of my application is meant to have a form, this form has a corresponding model and controller.

AJAX Mouse Over Image, Display HTML Content

javascript html ajax image mouseover

I'm trying to use AJAX to display html content when mousing over an image. My code seems good but doesn't seem to work. deakin-campus / discover-deakin are the html pages I'm trying to display.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.