Python: import source code into Eclipse
I recently started using over eclipse
for my class IDLE
. So far, I have no problem writing new code and creating new projects in eclipse.
However, when I open old code that was not originally written in my current project, eclipse seems to only open it as a text file.
For example, when I want to run a piece of code, I get a popup asking ANT build instead of using it with pydev
. Also the code won't show up in pydev package explorer
.
How do I import source code
into my project so eclipse
will treat it as such.
source to share