Commit 4f0085e7 authored by xuebingbing's avatar xuebingbing

1 修复 pyrcc5.bat pyuic5.bat 单独调用不能生效的问题

parent bfb4e803
@echo off
@pushd %~dp0
%OSGEO4W_ROOT%\bin\o4w_env.bat
%OSGEO4W_ROOT%\bin\qt5_env.bat
%OSGEO4W_ROOT%\bin\py3_env.bat
@if not defined OSGEO4W_ROOT ( @call "%~sdp0..\..\..\bin\o4w_env.bat" )
@if not defined O4W_WITH_QT5 ( @call "%OSGEO4W_ROOT%\bin\qt5_env.bat" )
@if not defined O4W_WITH_PY3 ( @call "%OSGEO4W_ROOT%\bin\py3_env.bat" )
echo "%OSGEO4W_ROOT%\apps\Python37\python.exe -m PyQt5.pyrcc_main %*"
REM @C:\\OSGeo4W64\apps\Python37\python.exe -m PyQt5.pyrcc_main %*
%OSGEO4W_ROOT%\apps\Python37\python.exe -m PyQt5.pyrcc_main %*
@popd
:end
popd
@echo off
@pushd %~dp0
@if not defined OSGEO4W_ROOT ( @call "%~sdp0..\..\..\bin\o4w_env.bat" )
@if not defined O4W_WITH_QT5 ( @call "%OSGEO4W_ROOT%\bin\qt5_env.bat" )
@if not defined O4W_WITH_PY3 ( @call "%OSGEO4W_ROOT%\bin\py3_env.bat" )
@%OSGEO4W_ROOT%\apps\Python37\python.exe -m PyQt5.uic.pyuic %*
:end
popd
SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python37
SET PYTHONPATH=%PYTHONHOME%;%PYTHONHOME%\Scripts
SET O4W_WITH_PY3=TRUE
PATH %PYTHONPATH%;%PATH%
......@@ -10,3 +10,4 @@ set O4W_QT_LIBRARIES=%OSGEO4W_ROOT:\=/%/apps/Qt5/lib
set O4W_QT_TRANSLATIONS=%OSGEO4W_ROOT:\=/%/apps/Qt5/translations
set O4W_QT_HEADERS=%OSGEO4W_ROOT:\=/%/apps/Qt5/include
set O4W_QT_DOC=%OSGEO4W_ROOT:\=/%/apps/Qt5/doc
set O4W_WITH_QT5=TRUE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment