Make mkdir.py work under python3 versions below 3.5#8194
Make mkdir.py work under python3 versions below 3.5#8194d-a-v merged 13 commits intoesp8266:masterfrom gneiss15:master
Conversation
…rduino.h, because this board has no build in lED
Because early versions of python3 did not have the optional arg "exist_ok" for "pathlib.Path(...).mkdir(...)" a build under this versions will abort with an error message. This PR will modify the python script so that it works even under python 3.4 (and below).
earlephilhower
left a comment
There was a problem hiding this comment.
Please don't change indents with patches. This and the other PY scripts are 4-space indented. Spacing changes like this make it hard to review/sync up.
Also, this seems like a spot where cascaded try (3.5+ version) except all (<3.5 version) would be better than examining python version numbers. Or, if the <3.5 version of Path.mkdir works on >3.5, then just change it to use that API no matter what.
OK, I will upload a version that only use the <3.5 version. |
earlephilhower
left a comment
There was a problem hiding this comment.
Thanks, this is much cleaner!
Because early versions of python3 did not have the optional arg "exist_ok" for "pathlib.Path(...).mkdir(...)" a build under this versions will abort with an error message. This PR will modify the python script so that it works even under python 3.4 (and below).