Very simple: os.startfile([file])

ex:
>>> import os
>>> os.startfile("d:\\documentos\\eleicoes2005-dn.xls")

It works with any file tipe in windows, the file is opened with it's associated application.




Basil Shubin wrote:
> Hi ,friends!
> 
> How I can open Excel or OOCalc spreadsheet file 'remotely' from python 
> programm? I mean how to execute Excel or Calc with appropriate 
> spreadsheet file?


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to