wondering how to work with multiple files at once

Hello, I am very new to using python, and I have two files with the file extension '.py'. I want to be able to run the one, which is my total project, entitled program.py, while also running another file called test.py. The reason I want to do this is so that if there's a block of code I want to just test really quick, I can c/p it over to the test window and run it. The problem is that I can't seem to do this, because when I try to open both files, pycharm only seems to recognize the first file as the project, and it considers the second file an outside resource, not a part of the project.

I hope I've been detailed enough, please let me know if I haven't.

Can somebody tell me how to accomplish this?
0
2 comments
Avatar
Permanently deleted user
Normally everything needs to be inside a "Project" as PyCharm calls it in order to work correctly. If you are just double-clicking the files to open them in Pycharm, try creating a new project and adding your files to the project.  (Or just recreate them as new files in the project and copy in contents.) You might also want to create a 'package' inside the project and place the files in the package but you don't have to.

Some resources that might help:

http://confluence.jetbrains.com/display/PYH/Getting+Started+with+PyCharm
http://confluence.jetbrains.com/display/PYH/Exploring+the+IDE.+Quick+Start+Guide
http://pedrokroger.net/pycharm-book/
0
Avatar
Permanently deleted user
Thanks very much, I will look these over.
0

Please sign in to leave a comment.