Ask coding questions

← Back to all posts
How to access main.py from inside a folder?
A5taroth

I know that REPL starts at the base directory but I have my main.py file inside a 'src' directory so is there a way to make REPL look in that specific directory?

Answered by JustCoding123 [earned 5 cycles]
View Answer
Voters
A5taroth
Comments
hotnewtop
JustCoding123

Create a file named .replit and put this inside: run="python3 src/main.py".