فهرست منبع

libgis: strip also .py extension from program name
(merge https://trac.osgeo.org/grass/changeset/62904 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63446 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 سال پیش
والد
کامیت
14c1a79f5b
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      lib/gis/progrm_nme.c

+ 3 - 0
lib/gis/progrm_nme.c

@@ -35,6 +35,8 @@ const char *G_program_name(void)
   Program name set to name (name will be returned by
   G_program_name*())
 
+  Extension like .exe or .py is stripped from program name.
+
   \param s program name
 */
 void G_set_program_name(const char *s)
@@ -51,6 +53,7 @@ void G_set_program_name(const char *s)
     }
     temp = G_store(s);
     G_basename(temp, "exe");
+    G_basename(temp, "py");
     name = G_store(temp);
     G_free(temp);
 }