Guest fiomba Posted November 19, 2004 Report Share Posted November 19, 2004 I am very newbie in python. I would like to launch a browser (for ex. Mozilla) but with parameters, that is the url address of a page . I have tried with import os os.system('mozilla') It opens Mozilla and when I exit it returns "0" But it does not work in this form: os.system('mozilla', 'http://www.google.com') TypeError: system() takes exactly 1 argument (2 given) Quote Link to comment Share on other sites More sharing options...
b Posted November 19, 2004 Report Share Posted November 19, 2004 "TypeError: system() takes exactly 1 argument (2 given)" Single argument: os.system('mozilla http://www.google.com') python illeterate here. hih Quote Link to comment Share on other sites More sharing options...
Guest fiomba Posted November 20, 2004 Report Share Posted November 20, 2004 Indeed it is the right solution! ...and I taught to be python literate! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.