Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
142 views
in Technique[技术] by (71.8m points)

python - Pydev in Eclipse default working directory

What is the default working directory for my project? I have several projects under my workspace, and a couple of run configurations. I use os.getcwd() and the directory goes to other project's folder, after deleting all run configurations, the directory goes to eclipse's install folder. How to make the default working directory goes to my project folder or the src folder?

EDIT:

In my PYTHONPATH that will be used in the run:

C:Program Fileseclipsedropinspluginsorg.python.pydev_1.5.4.2010011921PySrcpydev_sitecustomize;
C:(MyProjectDirecotry)\src;
C:Python26;
C:Python26DLLs;
C:Python26lib;
C:Python26liblib-tk;
C:Python26libplat-win;
C:Python26libsite-packages

maybe there's C:Program Fileseclipsedropinspluginsorg.python.pydev_1.5.4.2010011921PySrcpydev_sitecustomize; in the first line causing the issue. Why is this happened? How to revert it back to default? Thanks.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Open Run Dialog...-> Select your run configuration->Arguments Tab->Working directory:

mine is set to ${workspace_loc}:test/src/ for a project name test i created in my workspace


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...