FreeCAD: master 75b8ff36
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
GaryH | Gary L Hasson | master | 2020-11-04 15:54:48 | master d6321308 |
Changeset | Modify code format to PEP8 Add --marlin-config argument Marlin requires certain configuration settings in order to work well with FreeCAD. Those configuration settings will be added to the end of the gcode file as comments, when --marlin-config is entered as a post processor argument. For PEP8 conformity: Change some double-quotes to single-quotes. Change sequence of import statements. Modify code format to PEP8 Indentation and line length meet PEP8 requirements. Other aspects of PEP8 are partially implemented. Add code to remove embedded comments Also, minor tweaks throughout Change outstring to outList for clarity Change format_outstring to format_outList Change: if PathUtil.opProperty(obj, 'Active') is False: To: if PathUtil.opProperty(obj, 'Active') == False: Format file to PEP8 standard Format first pass using: autopep8 --in-place --aggressive --aggressive Manually adjust format for better appearance Recheck format using http://pep8online.com/ Change code related to pythonopen into with open() code Minor refactoring |
|||
mod - src/Mod/Path/PathScripts/post/marlin_post.py | Diff File |