I think I made the code more complicated than needed. `Import leo` etc. is 
only needed if the file will be called outside Leo, e.g. `python 
hello-world.py`. This should work in a node by itself with ctrl-b:

g.es_print(g.computeHomeDir())


Traceback (most recent call last): 
>   File "helloclean.py", line 2, in <module> 
>     import leo.core.leoGlobals as g 
> ModuleNotFoundError: No module named 'leo' 
>

pip install --editable  /home/slitt/build/leo-editor-master

Will add `leo.egg-link` in `PYTHONHOME/Lib/site-packages` which enables 
`import leo` to work. The egg-link file contains the path to the code 
directory, so editing sys.path shouldn't be needed.

You might need to use `pip install --user ...` on linux.

-matt

-- 
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/e6aaeb8e-cbae-4076-9425-6ecb9a739d1b%40googlegroups.com.

Reply via email to