My plan to start the new leo-as-an-editor branch from the latest trunk turned out to work very well.
The branch now contains a mass update. Here are the push notes: - Removed top-level references to g in leoGlobals.py. This is needed because g can not be set until after run() imports leoGlobals. - Set leoGlobals.g = leoGlobals in run() - call g.checkVersion after doing import of leoGlobals. This allows the run code to set leoGlobals.g = leoGlobals. - Removed all Leo imports from leoCommands.py except leoNodes. All other imports are done in the ctor or c.finishCreate. - Import leoEditCommands in k.endCommand. This breaks another circular dependency. - Modified several unit tests so they run. As you can see, some interesting changes were needed. The result is cleaner code. No more modules importing themselves. No more circular imports between modes. All imports fully qualified. All unit tests pass, but the nav_button plugin does not load. I'll get to it soon. You can test the code as follows: 1. Add leo-as-a-package2 to sys.path (in sitecustomize.py) 2. From any directory, start python, then execute: import leo leo.run(fileName=r'c:\leo.repo\leo-as-a-package2\leo\test \unitTest.leo') Modify the path as necessary. As I said, all unit tests now pass. Please report any problems immediately. Edward --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
