How can I launch an instance of an application using Python?

后端 未结 7 1358
北恋
北恋 2020-12-09 04:57

I am creating a Python script where it does a bunch of tasks and one of those tasks is to launch and open an instance of Excel. What is the ideal way of accomplishing that i

相关标签:
7条回答
  • 2020-12-09 05:40

    I like os.startfile("path to file") as it opens the file as if you've double clicked to open.

    I found that with os.system("start excel filename") it opened it like a file opened from the web and you had to enable editing.

    0 讨论(0)
提交回复
热议问题