@@ -157,6 +157,11 class Figure: | |||
|
157 | 157 | fullpath = os.path.split(filename)[0] |
|
158 | 158 | |
|
159 | 159 | if not os.path.exists(fullpath): |
|
160 | subpath = os.path.split(fullpath)[0] | |
|
161 | ||
|
162 | if not os.path.exists(subpath): | |
|
163 | os.mkdir(subpath) | |
|
164 | ||
|
160 | 165 | os.mkdir(fullpath) |
|
161 | 166 | |
|
162 | 167 | self.__driver.saveFigure(self.fig, filename, *args) |
General Comments 0
You need to be logged in to leave comments.
Login now