[QGIS-Developer] etc/ini/python-core.bat

Jürgen E. Fischer jef at norbit.de
Wed Nov 13 07:47:47 PST 2019


Hi,

On Wed, 13. Nov 2019 at 15:04:31 +0000, VOLPES-EXT, Jacky wrote:
> OK I understand.
> But as a result it could be considered to update the documentation just before this section here :
> https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/pyqgis_developer_cookbook/plugins/ide_debugging.rst#debugging-using-eclipse-and-pydev
> which gives the following as an example of script to prepare Eclipse development environment for plugins (now in Python 3):
> 
> 	call "C:\OSGeo4W\bin\o4w_env.bat"
> 	set PATH=%PATH%;C:\path\to\your\qgis_core.dll\parent\folder
> 	C:\path\to\your\eclipse.exe
> 
> This does not call py3_env.bat
> I guess it would be sufficient to add just this line to the example after the call to o4w_env.bat :
> 
> 	call "C:\OSGeo4W\bin\ py3_env.bat"
> 
> Thanks for you quick answer,
> What do you think ?

Or trim it - the problem is that it quotes the old batch file.  Not sure since
when there is no qgis-unstable.bat anymore, but long - maybe there never was.

The instruction to copy the qgis batch file of the desired version and then
replacing the QGIS call on the last line with your favorite IDE would still
work.  As the current versions have py3_env.bat (and qt5_env.bat) and add
qgis_core's directory to PATH.  AFAICS just the example batch file quotes are
outdated - but they probably only there to illustrate how the replaced last
line is supposed to look.


Jürgen

-- 
Jürgen E. Fischer           norBIT GmbH             Tel. +49-4931-918175-31
Dipl.-Inf. (FH)             Rheinstraße 13          Fax. +49-4931-918175-50
Software Engineer           D-26506 Norden            https://www.norbit.de
QGIS release manager (PSC)  Germany                    IRC: jef on FreeNode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20191113/5e6a3b22/attachment.sig>


More information about the QGIS-Developer mailing list