Starting a few days ago, Replit is ONLY executing the main.py contents. It doesn’t matter what other files I choose. If I empty the main.py file, nothing happens of course when I press Run. Is this some temporary thing that has only happened to me, or does anybody else have the same problem?
Also, I need some advice how to create a portfolio (in Replit) with interesting programs and projects. Potential employers should be able to access this portfolio through a link (and preferably they should be able to execute the files). It’s so easy, according to Replit, to fix a portfolio, but I’m totally lost.
Have a nice day everybody and thanks in advance!
Replit Profile: https://replit.com/@doktoranders
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.
You should also see the docs on how to configure a Repl:
And if you want to run the last edited file, take a look at this post:
improved: add/change to start of
onBoot = '''/nix/store/fbi9r30p3lqk96lmw5b1v1bpbj62cr2l-inotify-tools-22.214.171.124/bin/inotifywait -rqme create --format=%f%w --include='\..+\.py.[0-9]+~' .|while
read -r l||[ "$l" ]
done<.replit||echo -n "$o">.replit
kill 1 in Shell.
This will map the entrypoint to the last file you edited through the IDE.
.+\.py on line 1 with the
ERE of the files you want to be auto-set as entrypoint.
(I tried an option which checks for you just visiting the file in the editor but I found that that’s impossible. Maybe you can do this with an extension)
For the second bit, you could create a bunch of repls, put the links in one document ig.
Or, make a HTML page with all the links/embeds.
A big thank you!
I will try to implement your solutions. However, I am pretty certain that I until recently could just click on a .py file and execute it, or am I wrong?
@doktoranders Well, in the Shell, you can enter
python fileIwantToRun.py to view the output of that file in the Shell. Or, use the methods I stated in the post above.
Hope this helps!
Thanks again for taking the time to answer my questions!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.