Setting current directory for Interactive Console in pydev (Eclipse) at console startup
I want to start an interactive console in pydev from project directory, in order to import an app. I tried to use os.chdir at startup from Window->Preferences->PyDev->Interactive Console->Initial interpreter commands. I read https://docs.djangoproject.com/en/dev/ref/settings/ searching for an entry to set path but I didn't find anything. Thanks Edit: I had to import module first in order to import app Strange, I must say that after changing the initial interpreter commands to be: import sys; print('%s %s' % (sys.executable or sys.platform, sys.version)) import os;os.chdir('c:\\') Later doing