Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

how to execute a system command?

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


wrb302 at gmail

May 22, 2007, 11:25 PM

Post #1 of 2 (22 views)
Permalink
how to execute a system command?

i want to open a excel file in a button click event.
i found that os.popen4("excel.xls") would work but it is too slow
(much slower than i execute "excel.xls" in command line. ) even worse,
until excel is closed, the GUI has no response to user action.

any advice would be helpful.
--
http://mail.python.org/mailman/listinfo/python-list


justin.mailinglists at gmail

May 22, 2007, 11:39 PM

Post #2 of 2 (22 views)
Permalink
Re: how to execute a system command? [In reply to]

On May 23, 2:25 pm, wrb <wrb...@gmail.com> wrote:
> i want to open a excel file in a button click event.
> i found that os.popen4("excel.xls") would work but it is too slow

have you tried os.startfile

--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.