On Tuesday, November 19, 2024 at 4:08:33 AM UTC-5 Edward K. Ream wrote: On Friday, October 18, 2024 at 4:23:21 AM UTC-5 [email protected] wrote:
Leo restart on Windows suffers from the same problem. If I start it with my batch file that sets PYTHONPATH, it restarts the git/leo-editor version. If instead I cd to git/leo-editor and start with py -m leo.core.runLeo, then issue restart-leo, the pip-installed version gets started. I've just taken another look at 'restart-leo'. After shutting down Leo, the command begins the restart process like this: os.chdir(g.app.initial_cwd) # The directory from which Leo started. This ought to be right but something goes wrong. If I start Leo from the git/leo-editor directory and run the restart-leo command, the right parameters get printed: Restarting Leo... os.chdir(C:\Tom\git\leo-editor) subprocess.run([ C:\Users\tom\AppData\Local\Programs\Python\Python312\python.exe, C:\Tom\git\leo-editor\leo\core\runLeo.py, C:\Users\tom\.leo\workbook.leo ]) But the pip-installed version of Leo gets run anyway: *Leo 6.8.1* <=== should have been Leo 6.8.3-devel, tbp-vr3-restore-scroll-position branch, build 0879c45738 Python 3.12.3, PyQt version 6.7.3 -- 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 visit https://groups.google.com/d/msgid/leo-editor/3a39de92-7341-4de3-a89d-2e9984996f41n%40googlegroups.com.
