On Wed, Nov 20, 2024 at 7:17 AM Thomas Passin <[email protected]> wrote:

QQQ
If one starts Leo with py -m leo.core.runLeo, without setting PYTHONPATH,
one of two things should happen:

1. If the working directory is leo-editor, then the git repo's version of
Leo will run.
2. If the working directory is not leo-editor, then the pip-installed
version of Leo will run.
QQQ

That's what happens on my installation after pip install leo:

*Running from home*

C:\Users\Dev>python -m leo.core.runLeo
Leo 6.8.2
...
The log shows:
Leo 6.8.2
Python 3.12.0, PyQt version 6.7.3
Windows 11 AMD64 (build 10.0.26100) SP0
      home: C:\Users\Dev
leo-editor: C:\Python\Python3.12\Lib\site-packages
      load: C:\Python\Python3.12\Lib\site-packages\leo\core
    config: C:\Python\Python3.12\Lib\site-packages\leo\config

*Running from Leo's github repo*

C:\Repos\leo-editor>python -m leo.core.runLeo
Leo 6.8.3-devel, ekr-726-at-language-vue2 branch, build eab3d7e0a2
2024-11-20 04:46:08 -0600
...
The log shows:
Leo 6.8.3-devel, ekr-726-at-language-vue2 branch, build eab3d7e0a2
2024-11-20 04:46:08 -0600
Python 3.12.0, PyQt version 6.7.3
Windows 11 AMD64 (build 10.0.26100) SP0
      home: C:\Users\Dev
leo-editor: C:\Repos\leo-editor
      load: C:\Repos\leo-editor\leo\core
    config: C:\Repos\leo-editor\leo\config

*About runLeo.py*

*runLeo.py* contains only three imports:

import os
import sys
import traceback

The run function is:

def run(fileName=None, pymacs: bool = None, *args, **keywords):
    """Initialize and run Leo"""
    # #1403: sys.excepthook doesn't help.
    # sys.excepthook = leo_excepthook
    assert g.app
    g.app.loadManager = leoApp.LoadManager()
    g.app.loadManager.load(fileName, pymacs)

*LoadManager.load* instantiates commanders.

*c.initObjects* contains many imports of the form:

from leo.core import leoAtFile

Finally, I do have a sitecustomize.py file, but it is a do-nothing.

*Summary*

I do not believe a word of your analysis. There is something wrong with
your installation.

And one last question. Why are you leaving a pip-installed version of Leo
lying around?

I uninstall it immediately after testing.

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 visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2vwUJO3WCbG2u3_2VdbKZHuDvWHMLjaXoTegAiXm%2B04Q%40mail.gmail.com.

Reply via email to