On Fri, Jul 18, 2014 at 10:52 PM, 'Terry Brown' via leo-editor
> So if I run Leo with leo on the PYTHONPATH then I get
>
> pylint: eet2.py
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
> ImportError: No module named core.leoGlobals
> pylint: done

Leo runs this in a separate process::

command = '%s -c "import leo.core.leoGlobals as g; g.run_pylint(%s)"' % (
        sys.executable,args)

which should be about the same as running this from the console::

    python -c "import leo.core.leoGlobals as g; g.run_pylint(
        fn=<path to your file>,rc=<path to rc file>"

To make this work, I have the following in sitecustomize.py:

table = (
    r'C:\leo.repo\leo-editor',
    etc...
)
for path in table:
    sys.path.append(path)

Does that work for you?

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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to