#1327: [python] DebCheck QA: undefined name 'main' -------------------------+-------------------------------------------------- Reporter: hamish | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 6.4.2 Component: Python | Version: 6.4.0 Keywords: d.rast3d | Platform: Linux Cpu: Unspecified | -------------------------+--------------------------------------------------
Comment(by neteler): The script is here: etc/wxpython/scripts/d.rast3d (no idea why Debian has it in etc/gui/...). Differences: d.rast3d (DebCheck QA complains): {{{ ... from grass.script import core as grass if __name__ == "__main__": options, flags = grass.parser() main() }}} p.rast (same directory, DebCheck QA does not complain): {{{ ... import sys import os import grass.script as grass def construct_command(cmd): ... if __name__ == "__main__": options, flags = grass.parser() main() }}} -- Ticket URL: <https://trac.osgeo.org/grass/ticket/1327#comment:1> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev