Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-22 Thread DelazJ
Hi Tom,
Indeed, I should have read the help of the command; it mentions that. Using
a git infrastructure, I was surprised to see backup files as I could do a
reset if things went wrong but I guess the script is intended to be used in
any env.

Harrissou

2018-05-21 1:19 GMT+02:00 Tom Chadwin :

> Those are likely to be your original Python 2 files, before the script made
> changes, allowing you to roll back. They should definitely not be
> published,
> but you should keep them yourself until you are confident the conversion
> was
> successful.
>
> Tom
>
>
>
> -
> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-
> f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
Those are likely to be your original Python 2 files, before the script made
changes, allowing you to roll back. They should definitely not be published,
but you should keep them yourself until you are confident the conversion was
successful. 

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread DelazJ
Hi Tom,

Not really. It expects qgis2to3 to be a file in such a command. But it
makes me remind to look for a qgis2to3 file and i found it in
C:\OSGeo4W64\apps\Python36\Scripts. Moving to that folder and calling
`qgis2to3 -w /path/to/my/plugin` did the trick.

Thanks for your help.

Next question: I realize that other than changing my existing files it also
creates some .py.bak files. Anyone knows what I am supposed to do with
them? Should they also be in the published version (they seem to be
generated automatically)?

H.

2018-05-20 22:16 GMT+02:00 Tom Chadwin :

> In other words:
>
> python3 qgis2to3 /path/to/my/plugin
>
> Tom
>
>
>
> -
> Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-
> f4099106.html
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
In other words:

python3 qgis2to3 /path/to/my/plugin

Tom 



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Running qgis2to3 on windows

2018-05-20 Thread Tom Chadwin
Absolutely no expert, but does this help?

https://stackoverflow.com/a/38979755/5613104

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer