Running failed after rename thew file


after changing the file name it won’t run.

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

Yep this is an intended feature. Either rename the file to “main.py” or follow the instructions below:

Just click the next to “Files” then click “Show hidden files”. Next click on the .replit file and finally you can change the entrypoint to whatever file you want to run.

Images

Dots

Show hidden files

edited

You should also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl

And if you want to run the last edited file, take a look at this post:

2 Likes

it doesn’t work with this method

Use python3 Week1/"4_Operators & string.py" instead. It’s best not to put spaces in filenames but quotes mitigate the issue.