if you start Leo (or any .py file) by double-clicking on it it's likely
`pythonw.exe` is being used. You can find out for sure with `assoc` and
`ftype` from a command shell:
{{{
C:\>assoc .py
.py=Python.File
C:\>ftype Python.File
Python.File="E:\Python27\ArcGIS10.1\pythonw.exe" "%1" %*
C:\>assoc .leo
.leo=LeoFile
C:\>ftype LeoFile
LeoFile=b:\bin\leo.bat "%1"
}}}
more info: http://ss64.com/nt/ftype.html
On Thu, Apr 25, 2013 at 6:33 AM, tfer <[email protected]> wrote:
> That's how I run Leo, (console is great for windows). Unless you
> specifically call pythonw.exe it should use python.exe located through your
> "Path" system enbironment variable. Here is what I use in the shell
> setting for a console "leo" tab:
> cmd.exe /k C:\entPY27\python.exe
> "C:\VC\Bzr\leo-editor\trunk\launchLeo.py"
> the cmd.exe /k portion creates a dos window that the rest of the command
> line is run in, (the dos window is hidden offscreen and console uses its
> magic to present it inside of its buffer. This now serves as stdio, (and
> stderr) and catches messages written by leo.
>
> Adjust your shell command to where python and leo lives on your machine,
> (found in Edit->Setting->Tabs).
>
> Tom
>
> On Wednesday, April 24, 2013 8:41:02 PM UTC-4, lewis wrote:
>>
>> Terry,
>>
>> Thanks it's working nicely :)
>> I use console
>> (sourceforge.net/projects/**console<http://sourceforge.net/projects/console>)
>> to open leo. I run launchleo.py from the leo directory so I'm not sure
>> if \python.exe or \pythonw.exe are used.
>>
>> Regards
>> Lewis
>>
>> On Tuesday, April 23, 2013 11:24:00 PM UTC+10, Terry wrote:
>>>
>>>
>>> As for the feedback appearing in the log rather than the console, do
>>> you have a console open? It may depend on whether you start Leo
>>> with ...\python.exe or ...\pythonw.exe. I use the former, a console
>>> opens, and the filename appears there.
>>>
>>> Cheers -Terry
>>>
>> --
> 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?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.