import os os.system('python check_install.py') try: f = open('workshop_req_check.txt','r') for line in f.readlines(): print line, f.close() except IOError: print 'The script could not be executed!'