Markus Neteler wrote:

> > ok, I've commited the changes in lib/init/grass.py and in the
> > lib/python/gunittest/*
> 
> Please post to the list how to switch to Python3 in case that multiple
> versions are available.
> Like this more testers may join.

It depends upon how the different Python versions are installed.

GRASS' scripts use the shebang:

        #!/usr/bin/env python

so the first program named "python" in $PATH will be used.

If Python 3.x is installed as e.g. /usr/bin/python3, it usually
suffices to create a directory containing a symlink from python to
/usr/bin/python3 and put that directory at the start of $PATH. E.g.

        mkdir python3
        ln -s /usr/bin/python3 python3/python
        export PATH=`pwd`/python3:$PATH

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to