Help me releted to running the project

guys I am a beignner but I don’t know why when ever I run my project it runs the main py but not the other even if I close it runs that tab and if i # them than nothing would happen

Replit Profile: https://replit.com/@laxmendrakashya

1 Like

Welcome to the forums, @laxmendrakashya !
It’s supposed to only run one file, which is main.py by default. To run any other file, you would have to go to the .replit file, as shown in the image below:


You should see this code shown:

entrypoint = "main.py"
modules = ["python-3.10:v18-20230807-322e88b"]

[nix]
channel = "stable-23_05"

[unitTest]
language = "python3"

[gitHubImport]
requiredFiles = [".replit", "replit.nix"]

[deployment]
run = ["python3", "main.py"]
deploymentTarget = "cloudrun"

Now, replace the main.py the first line, which is

entrypoint = "main.py"

with the file you want to run.
Warning: Don’t remove the double quotes!
Hope it helps!

4 Likes

sir what should I replace it with

The file you want to run.

2 Likes