[GRASS-SVN] r53523 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 22 05:25:21 PDT 2012


Author: martinl
Date: 2012-10-22 05:25:20 -0700 (Mon, 22 Oct 2012)
New Revision: 53523

Modified:
   grass/trunk/lib/gis/parser_script.c
Log:
libgis: specify python interpret for --script output (GRASS currently
supports only Python scripts)


Modified: grass/trunk/lib/gis/parser_script.c
===================================================================
--- grass/trunk/lib/gis/parser_script.c	2012-10-22 08:24:21 UTC (rev 53522)
+++ grass/trunk/lib/gis/parser_script.c	2012-10-22 12:25:20 UTC (rev 53523)
@@ -27,6 +27,8 @@
     char *type;
 
     fprintf(fp,
+	    "#!/usr/bin/env python\n");
+    fprintf(fp,
 	    "############################################################################\n");
     fprintf(fp, "#\n");
     fprintf(fp, "# MODULE:       %s_wrapper\n", G_program_name());



More information about the grass-commit mailing list