jferard / py4lo

Py4LO is a simple toolkit to help you write and include Python scripts in LibreOffice Calc spreadsheets.
GNU General Public License v3.0
5 stars 2 forks source link

target dir creation #9

Closed jferard closed 6 years ago

jferard commented 7 years ago

python py4lo run crashes if the target directory does not exist. The creation should be automatic when needed.

jferard commented 6 years ago

os.makedirs(path[, mode]): Recursive directory creation function. Like mkdir(), but makes all intermediate-level directories needed to contain the leaf directory. Raises an error exception if the leaf directory already exists or cannot be created. The default mode is 0777 (octal).