By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,631 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,631 IT Pros & Developers. It's quick & easy.

calling different python scripts from a main script

P: 3
hi all
How can diff python scripts be called from a main script which is again a .py? os.system("python") works fine, but what if I want to handle the un handled exceptions of the external scripts in the main script??

thanx in advance
Sep 21 '10 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 2.5K+
P: 2,851
Why not import the other python files?
Sep 21 '10 #2

Expert 100+
P: 621
Try subprocess or pexpect.
Sep 22 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.