People might prefer to display their own powerpoint, rather than a hard-coded one

This commit is contained in:
Jonathan Corwin 2009-09-24 22:44:47 +01:00
parent 7dec1ff8f9
commit 7c9c45cb36
1 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ class PptviewController(object):
and started.
``presentation``
The file name of the presentations to the run.
The file name of the presentations to run.
"""
log.debug(u'LoadPresentation')
if self.pptid >= 0:
@ -82,7 +82,7 @@ class PptviewController(object):
filename = str(presentation.replace(u'/', u'\\'));
try:
tempfolder = None #r'c:\temp\pptviewlib\' + filename.split('u\\')[-1]
self.pptid = self.presentation.OpenPPT('c:\\test.ppt', None, rect, tempfolder)
self.pptid = self.presentation.OpenPPT(filename, None, rect, tempfolder)
except:
log.exception(u'Failed to load presentation')
#self.slidecount = pptdll.GetSlideCount(self.pptid)