python scripts for ppt and xls

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-09-14 11:32:16 +02:00
parent 86ef362461
commit 002eb67185
5 changed files with 156 additions and 18 deletions
+6 -2
View File
@@ -35,16 +35,20 @@ class RTFProcessData:
class RTFFilter:
def __init__(self, em):
self.em = em
self.ntry = 0
def reset(self):
pass
self.ntry = 0
def getCmd(self, fn):
if self.ntry:
return ([], None)
self.ntry = 1
cmd = rclexecm.which("unrtf")
if cmd:
return ([cmd, "--nopict", "--html"], RTFProcessData(self.em))
else:
return ([],None)
return ([], None)
if __name__ == '__main__':
if not rclexecm.which("unrtf"):