Running the program after renaming

The console keeps asking for the old name, and doesn’t run the renamed file, how to solve that?

Hey @HassanDbouq, welcome to the forums!

Just click the three dots 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.

You can also change the second line from run="run_command_for_lang main.file_type" to run="run_command_for_lang fileIWantToRun.file_type", though it won’t have an effect for interpreted languages as shown in the comment on line 1.



Show hidden files



What programming language are we talking about?


I am using Python language.

Thanks a lot, it worked! But after doing so, and when I move from file to another, I should repeat the process to make the interpreter run the other file.

1 Like

Yeah, that’s it. Please mark my post as a solution so the thread can close.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.