Advertisement
Aqueouscarlos

Solution of use one py file to run other py files one by one

Aug 3rd, 2018
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import file1
  2. file1.function()
  3.  
  4. import file2
  5. file2.function()
  6.  
  7. import file3
  8. file3.function()
  9.  
  10. '''
  11. # content of file1.py
  12. import a
  13. def function()
  14.    
  15.  
  16. if __name__ == "__main__":
  17. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement