"Run" option to right-click python file menu
I believe that right now the only file that can be run in repl.it is main.py.
So if I have several runnable files in the same project, I can run them by putting "import script1.py" or "import script2.py" etc. in main.py, and changing it every time I need to run a different script, which is a bit tedious.
Is there a better way to do it? In other editors, there is a "Run" option available in right click context menu, but I could not find any equivalents in repl.it :(
Maybe add this to your
run = """ read -p 'name: ' name python "$name.py" """
now all you have to do is specify the file name
Yes there is a .replit file, create a .replit file, and if you want to run a python do this
run = "python3 file_name.py"
Here is an example https://repl.it/@IntellectualGuy/PrizeDodgerblueClick#main.py