it could be made portable with 

import leo.core.leoGlobals as g
@path = g.computeHomeDir() # yields '/home/slitt' or 'C:\Users\slitt'

Also, if it's a Leo script (as distinct from a python script that could be 
run without Leo) this will print to both the starting console (stdout) and 
to Leo's log pane:

g.es_print('Hello World') 

-matt


On Tuesday, 17 December 2019 05:40:59 UTC-8, stevelitt wrote:
>
> Hi all, 
>
> Is the attached hello.leo a reasonable Hello World for using Leo to 
> write Python programs? 
>
> Thanks, 
>
> SteveT 
>
> Steve Litt 
> December 2019 featured book: Rapid Learning for the 21st Century 
> http://www.troubleshooters.com/rl21 
>

-- 
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/bb5a9fb9-4f85-4dff-b5ae-11cbd76d9256%40googlegroups.com.

Reply via email to