When I open a new repl python file. It has main.py file in it. When I open a new file in the Repl file and press RUN the prosess run main.py file not my second new python file. Am I have to open new file for all new .py file to Run them?
Welcome to the forums.
It can only run one file at a time, and you can change the file to run like this:
- Go to the Files section.
- Press the three dots, and press show hidden files.
- Go to .replit, and go to the
entrypointvariable. It should look like
entrypoint = "main.py"
- Change its value to your new file. It should now look like this:
entrypoint = "YOUR_NEW_FILE.py"
That should work! If it did, mark this post as the solution!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.