Skip to content
Sign upLog in
Profile icon

STEPHEN.YOON 105734

@STEPHENYOON1057
Repls
Community
STEPHENYOON1057
STEPHENYOON1057
shared a Post
1 year ago
5
How do I change which file to run?
When I tried to run my files after renaming them, it just said "No such file: main.py repl process died unexpectedly: exit status 2?" How do I change
GuessNumber
Python
LiamJayCoderALT
LiamJayCoderALT
The question is totally valid so don't worry about it! Note that only the main.py runs so you have to import your auxilary files in main.py. If you include this code in main.py, from fonctiontest import *, the program will be able to use your code from fonctiontest.py.5 months ago
Bookie0
Bookie0
What do we have to input to get that error? Also to run your file, you have to do: from file_name import * # imports everything from that file or from filename import modulename # you can imports variables, functions, etc. Is this what you wanted? Not quite sure.. :)1 year ago