##// END OF EJS Templates
Make sure the path exists that the figures are to be written to.
Jonathan Frederic -
Show More
@@ -67,6 +67,9 b' class FilesWriter(WriterBase):'
67
67
68 #Determine where to write the file to
68 #Determine where to write the file to
69 dest = os.path.join(self.build_directory, filename)
69 dest = os.path.join(self.build_directory, filename)
70 path = os.path.dirname(dest)
71 if not os.path.isdir(path):
72 os.makedirs(path)
70
73
71 #Write file
74 #Write file
72 with io.open(dest, 'wb') as f:
75 with io.open(dest, 'wb') as f:
General Comments 0
You need to be logged in to leave comments. Login now