Browse Source

libgis: specify python interpret for --script output (GRASS currently
supports only Python scripts)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@53523 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 12 years ago
parent
commit
caa7ef326f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/gis/parser_script.c

+ 2 - 0
lib/gis/parser_script.c

@@ -27,6 +27,8 @@ void G__script(void)
     char *type;
 
     fprintf(fp,
+	    "#!/usr/bin/env python\n");
+    fprintf(fp,
 	    "############################################################################\n");
     fprintf(fp, "#\n");
     fprintf(fp, "# MODULE:       %s_wrapper\n", G_program_name());