瀏覽代碼

wrong OSGEO4W_ROOT when installing OSGeo4W to different target directory, see https://trac.osgeo.org/grass/ticket/3724

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74020 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 6 年之前
父節點
當前提交
63f86764a5
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      mswindows/osgeo4w/grass.bat.tmpl

+ 4 - 4
mswindows/osgeo4w/grass.bat.tmpl

@@ -5,13 +5,13 @@ rem # GRASS initialization bat script (OSGeo4W)
 rem #
 rem #########################################################################
 
-SET OSGEO4W_ROOT=@OSGEO4W_ROOT@
-
 rem
 rem Set environmental variables
 rem
-call %OSGEO4W_ROOT%\bin\o4w_env.bat
-call %OSGEO4W_ROOT%\bin\py3_env.bat
+call "%~dp0\o4w_env.bat"
+call py3_env.bat
+@echo off
+
 call %OSGEO4W_ROOT%\apps\grass\grass-@VERSION@\etc\env.bat
 
 rem