Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I import/add an existing Python file to a PyCharm project?

How do I import/add an existing Python file to a PyCharm project?

like image 340
LostMohican Avatar asked Mar 07 '12 16:03

LostMohican


People also ask

How do I load a file in PyCharm?

In the Project tool window, right-click a file or folder, then select Deployment | Upload to from the context menu, and choose the target deployment server or server group from the list. If the default server or server group is appointed, you can also select Upload to <default deployment server or server group>.

How do I add a code to PyCharm?

In the editor, press Ctrl+Alt+Insert to add a class, file, or package. If the focus is inside the Project tool window and you want to add a new element, press Alt+Insert . To create a new Scratch file, press Ctrl+Alt+Shift+Insert . PyCharm creates a temporary file that you can run and debug.


1 Answers

Copy the files to some directory under the project root using your favorite file manager or add the directory containing your files to the project using Settings (Preferences on Mac) | Project Structure | Add Content Root.

like image 139
CrazyCoder Avatar answered Oct 04 '22 21:10

CrazyCoder