scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.4k stars 519 forks source link

How to find pptx is None or having custom template path #905

Closed Srini138 closed 11 months ago

Srini138 commented 1 year ago

Hi I am having custome theme powerpoint. If i wish to upload custom theme its going back and its getting as prs = Presentation('my_custom_theme.pptx') otherwise it should be default prs = Presentation() How to find pptx has path of custom theme presentation file or None.Any suggestions very much helpful

MartinPacker commented 1 year ago

Are you asking about the existence of the file or its contents?

Former is not a python-pptx problem but standard Python.

jesse-sealand commented 1 year ago

@Srini138 , please clarify your question so it can be addressed.