+ 1

Program to run another python program

I am trying to write code for a program that can execute and run other programs from the same filedirectory. Below is the code. When I try running and executing it it stops working. How can I fix it? https://code.sololearn.com/cD2iA1GtGSdY/?ref=app

28th Jun 2019, 3:51 PM
Wallace Sheundah
Wallace Sheundah - avatar
1 Réponse
+ 1
I am not actually sure, how exec works, but I recommend to have a main function in each file. And then you can call them to run the wanted parts.
28th Jun 2019, 5:24 PM
Seb TheS
Seb TheS - avatar