Hi Jürgen,

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 ?

Jacky Volpes
HR Team pour la Société du Canal de Provence | 2SI - QGIS
Le Tholonet, CS70064
[email protected] 


-----Message d'origine-----
De : Jürgen E. Fischer [mailto:[email protected]] 
Envoyé : mercredi 13 novembre 2019 15:49
À : VOLPES-EXT, Jacky <[email protected]>
Cc : [email protected]
Objet : Re: [QGIS-Developer] etc/ini/python-core.bat

Hi Jacky,

On Wed, 13. Nov 2019 at 14:04:58 +0000, VOLPES-EXT, Jacky wrote:
> I am on Windows, and I guess that the file etc/ini/python-core.bat in 
> the installation directory has an invalid content :
 
> SET PYTHONHOME=%OSGEO4W_ROOT%\apps\Python27
> PATH %OSGEO4W_ROOT%\apps\Python27\Scripts;%PATH%

> Since QGIS 3 I have to hand-modify it from Python27 to Python37 on 
> both lines, in order to have my Eclipse environment working after the 
> running the following batch file : bin\o4w_env.bat

> Obviously, the same for using OSGeo4W Shell which is not correctly 
> configured for python3 unless modifying the above file, as it calls 
> bin\o4w_env.bat for initialization.

You need to call py3_env.bat - like everything else in OSGeo4W that uses 
python3.

python2 is still the default python, although the last bit that was using
python2 - read GRASS - was upgraded to python3 a few days ago.


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
_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to