import os cmd = 'python train_clip.py' os.system(cmd) cmd = 'python test_clip.py' os.system(cmd)