469,631 Members | 1,334 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

calling different python scripts from a main script

hi all
How can diff python scripts be called from a main script which is again a .py? os.system("python external_script.py") 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
2 1579
2,851 Expert Mod 2GB
Why not import the other python files?
Sep 21 '10 #2
626 Expert 512MB
Try subprocess or pexpect.
Sep 22 '10 #3

Post your reply

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

Similar topics

6 posts views Thread by windozbloz | last post: by
8 posts views Thread by Jan Danielsson | last post: by
5 posts views Thread by Helmut Jarausch | last post: by
6 posts views Thread by Ishpeck | last post: by
24 posts views Thread by Mark | last post: by
9 posts views Thread by matthias | last post: by
3 posts views Thread by Anthony Smith | last post: by
9 posts views Thread by Catherine Moroney | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.