Kaydet (Commit) e7169273 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Drop bogus and unneeded os.makedirs() call

It is a (file:) URL anyway, and LO seems to take care of creating the
directory as neded.

Change-Id: I19dd7b67cfe2f77cea14e882c1142fadde2fbdaa
üst a48cf78f
...@@ -326,10 +326,6 @@ def loadFromURL(xContext, url, t, component): ...@@ -326,10 +326,6 @@ def loadFromURL(xContext, url, t, component):
xGEB.removeDocumentEventListener(xListener) xGEB.removeDocumentEventListener(xListener)
def exportToODF(xContext, xDoc, baseName, t, component): def exportToODF(xContext, xDoc, baseName, t, component):
try:
os.makedirs(outdir)
except OSError:
pass
exportFileName = outdir + "/" + os.path.splitext(baseName)[0] + flatODFTypes[component][0] exportFileName = outdir + "/" + os.path.splitext(baseName)[0] + flatODFTypes[component][0]
print("exportToODF " + baseName + " => " + exportFileName) print("exportToODF " + baseName + " => " + exportFileName)
props = [("FilterName", flatODFTypes[component][1]), props = [("FilterName", flatODFTypes[component][1]),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment