I know that the run location can be changed by using the .replit and replit.nix files. Given a module “foo” is installed in a python venv, I’d like to be able to run the command “python3 -m foo bar” every time I press the Run button. Is there a way I could go about doing this while preserving the python virtual environment? I have tried simply changing the "run = " line in .replit but looking further into things, it appears it’s not that simple as there’s a whole interpreter section as well. Would appreciate any help!
Hi @teamvista welcome to the forums and thank you for your question.
I spoke with the engineering team and they confirmed you can do this if you comment out or remove the interpreter section from the .replit file. If the interpreter section isn’t commented out the
run = section is ignored.
Hope this helps you solve the issue. Let me know if this is the answer!