It can get trickier if you have more than one python installation, as I do. I keep python 2.7, since there are still a few older programs I may run that don't run with python 3+. It turns out that the 2.7 installation added its directories to the system path, and the 3.8 installation did not.
To be on the safe side, I run python 3.8 from a batch file that removes the python 2.7 entries from the path and adds python 3.8 ones. This may be overkill, but better to be thorough. Here's my batch file for running python 3.8: @echo off setlocal :: Remove Python 2.7 directories from path by adding "xxx" to their names set _path=%PATH:C:\Python27=C:\Python27xxx% path %_path% :: Add Python 3.8 Scripts directory to PATH path C:\Users\tom\AppData\Local\Programs\Python\Python38\Scripts;%PATH% "C:\Users\tom\AppData\Local\Programs\Python\Python38\python.exe" %* endlocal I use setlocal/endlocal so the path doesn't get changed permanently. On Sunday, April 12, 2020 at 6:27:56 AM UTC-4, Edward K. Ream wrote: > > > > On Sun, Apr 12, 2020 at 12:56 AM lewis <[email protected] > <javascript:>> wrote: > >> I have a windows PC where command line options for Leo are ignored. >> > > Are you starting with a batch file? If so, you should add %*. For > example, here is my leo.bat file: > > python c:\leo.repo\leo-editor\launchLeo.py --gui=qttabs %* > > Edward > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/2febaedd-3de2-47f7-8786-1ad0d49de93b%40googlegroups.com.
