Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Import Source Code into Eclipse

I've recently started using eclipse for my class over IDLE. So far I have no problems writing new code and creating new projects in eclipse.

However, when I open older 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 for an ANT build instead of running it using pydev. Also the code will not show up in the pydev package explorer.

How do I go about importing the source code into my project so eclipse will treat it as such.

like image 325
SirSid Avatar asked Dec 30 '25 01:12

SirSid


1 Answers

File > Import > "General" Folder > "File System" Folder > "Browse" button

like image 72
nairware Avatar answered Dec 31 '25 14:12

nairware