[open-allure-ds] push by jg07...@gmail.com - Added message when PowerPoint unavailable on 2011-12-05 08:37 GMT

3 views
Skip to first unread message

open-al...@googlecode.com

unread,
Dec 5, 2011, 3:38:09 AM12/5/11
to open-al...@googlegroups.com
Revision: 9f2c1ec6190c
Author: Jo...@John-PC.lan
Date: Mon Dec 5 00:36:38 2011
Log: Added message when PowerPoint unavailable
http://code.google.com/p/open-allure-ds/source/detail?r=9f2c1ec6190c

Modified:
/odp2wts/odp2ss.py

=======================================
--- /odp2wts/odp2ss.py Sun Dec 4 19:53:35 2011
+++ /odp2wts/odp2ss.py Mon Dec 5 00:36:38 2011
@@ -148,7 +148,11 @@
if sys.platform.startswith("win") and odpSuffix.startswith("ppt"):
# create .jpg files
slideNotes = []
- Application = win32com.client.Dispatch("PowerPoint.Application")
+ try:
+ Application = win32com.client.Dispatch("PowerPoint.Application")
+ except:
+ easygui.msgbox("PowerPoint not available.")
+ sys.exit()
Application.Visible = True
Presentation = Application.Presentations.Open(odpFilePath)
onSlide = 0

Reply all
Reply to author
Forward
0 new messages