1

I am developing a desktop application that helps users create Powerpoint Presentations. After finishing and saving the .pptx file, is there a way to get it to open in powerpoint so that the user can see the resulting presentation without having to open the file on their own ? (I am using windows)

2 Answers 2

3

You can use os.startfile function, which will start a file with its associated application. This will behave like double-clicking the file in Windows Explorer

>>> import os
>>> os.startfile("path_of_your_ppt")
Sign up to request clarification or add additional context in comments.

Comments

0

Try this:

os.system('your pptx filename with .pptx extension')

If your windows will know which default app to use for opening PowerPoint files, this will surely work.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.