cleanup in new python filters

--HG--
branch : WINDOWSPORT
This commit is contained in:
Jean-Francois Dockes
2015-09-12 10:54:26 +02:00
parent 330c7fc30d
commit 118982d25e
4 changed files with 222 additions and 153 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import rclexecm
import rclexec1
import re
import sys
import os
@@ -46,7 +47,10 @@ class RTFFilter:
return ([],None)
if __name__ == '__main__':
if not rclexecm.which("unrtf"):
print("RECFILTERROR HELPERNOTFOUND antiword")
sys.exit(1)
proto = rclexecm.RclExecM()
filter = RTFFilter(proto)
extract = rclexecm.Executor(proto, filter)
extract = rclexec1.Executor(proto, filter)
rclexecm.main(proto, extract)