PR #3922 significantly improves Leo's restart-leo command. The command now uses the command-line arguments in effect when Leo started.
These changes are an earthquake in my workflow. Rather than closing and reopening my test file, I just use the restart-leo command. This change saves so much time! How did I ever live without it?
Issue #3925 suggests eliminating reload-settings and reload-stylesheets commands. The improved restart-leo command makes them unnecessary. In essence, the reload commands are hacks. Imo, the reload commands should be aliases for restart-leo.
What do you think?
Edward
PR #3922 significantly improves Leo's restart-leo command. The command now uses the command-line arguments in effect when Leo started.
PR #3922 significantly improves Leo's restart-leo command. The command now uses the command-line arguments in effect when Leo started.
I have tested the latest version of Leo's devel branch in a dedicated Debian & Fedora VM.The command is working fine in both !
However & FYI: When I run Leo's unit tests in both VMs I receive 43 identical / similar errors:
File "/home/user/PyVE/GitHub/Leo/leo-editor/leo/external/npyscreen/wgwidget.py", line 21, in <module>
from leo.core import leoGlobals as g
ModuleNotFoundError: No module named 'leo'
What directory are you running the tests from?
Unless you set the right one using PYTHONPATH, you have to be in the leo-editor directory to be able to find leo.core.xxx, etc.
Hello Thomas,Thanks a lot for your response.
...you have to be in the leo-editor directory to be able to find leo.core.xxx, etc.
I was not aware, that I have to start the unittests from the top-level directory & not from within ...I did re-run the unittests from "~/PyVE/GitHub/Leo/leo-editor/" - and - everything's working fine.Sorry for the noise !