View Single Post
Old 09-30-2020, 08:00 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Install Python 3.8.whatever then use pip install modernize. If you have installed Python other than in the default AppData location (I like it to be in Program Files), I'd recommend running that command from a administrative command prompt. Assuming the executables are on your path, you can either run:

python -m modernize -w file_to_be_updated.py

python-modernize file_to_be_updated.py

For help, run python -m modernize --help or python-modernize --help.

Just note that this will not give you a guaranteed to run Python 3 file, just that a lot of the gruntwork will have been done.
Thank you. I'll give it a go when I have the time. I'm really curious how it would deal with the DeDRM plugin.
JSWolf is offline   Reply With Quote