Changes between Version 35 and Version 36 of Submitting/Python


Ignore:
Timestamp:
Jan 18, 2022, 1:57:27 PM (2 years ago)
Author:
wenzeslaus
Comment:

Update how file header is structured

Legend:

Unmodified
Added
Removed
Modified
  • Submitting/Python

    v35 v36  
    2323general over view of the code in the file to assist other
    2424programmers that will need to make changes to your code. For this
    25 purpose use [https://www.python.org/dev/peps/pep-0257/ Python Docstring].
     25purpose use a comment and [https://www.python.org/dev/peps/pep-0257/ Python docstring].
    2626
    2727Example (fictitious header for a script called ''g.myscript''):
    2828
    2929{{{
    30 #!python
    31 """
    32 MODULE:    g.myscript
    33 
    34 AUTHOR(S): John Doe <email AT some domain>
    35 
    36 PURPOSE:   Describe your script here...
    37 
    38 COPYRIGHT: (C) 2007 John Doe, and by the GRASS Development Team
    39 
    40            This program is free software under the GNU General Public
    41            License (>=v2). Read the file COPYING that comes with GRASS
    42            for details.
    43 """
     30#!/usr/bin/env python
     31
     32##############################################################################
     33# MODULE:    g.myscript
     34#
     35# AUTHOR(S): John Doe <email AT some domain>
     36#
     37# PURPOSE:   Describe your script here from maintainer perspective
     38#
     39# COPYRIGHT: (C) 2022 John Doe, and by the GRASS Development Team
     40#
     41#            This program is free software under the GNU General Public
     42#            License (>=v2). Read the file COPYING that comes with GRASS
     43#            for details.
     44##############################################################################
     45
     46"""Describe your script here from Python user perspective"""
    4447}}}
    4548