On Sun, May 22, 2022 at 9:44 AM tbp1...@gmail.com <tbp100...@gmail.com> wrote:
> I have noticed that there have been a number of expressions used to try to > find Leo's directory, to try to handle or work around problems like this. > Some of them involve finding the sitepackages directory. I want to point > out that most of these efforts make assumptions that are incorrect for many > linux installations or when a PYTHONPATH is in effect. > > IMO, the most reliable way to locate the Leo directory is this (run on > Linux Mint): > > >>> import os.path, leo > >>> print(os.path.dirname(leo.__file__)) > /home/tom/git/leo-editor/leo > > If I do not set PYTHONPATH to my git clone, the PyPi-installed Leo on the > same Linux VM is at > > /home/tom/.local/lib/python3.6/site-packages/leo > Thanks for these remarks. I'm still working on this problem. See #2668. <https://github.com/leo-editor/leo-editor/issues/2668> 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 leo-editor+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAMF8tS1FyYKqTtu-%3D%3DPw6zB%2BU1pqdBcUdzsbDGEmkzuvtG6npg%40mail.gmail.com.