Hi again,

> Try opening a command shell and then start Leo with python.exe instead of
> pythonw.exe. There may be errors there not captured by the log window

Good Hints, python.exe instead of pythonw.exe at least is able to open
files from inside Leo.

This Leo 4.10-final installer installs a leo which in its default
configuration IS NOT ABLE TO OPEN FILES on win7 using python3 [1]

FIX SUGGESTION:
- remove 'Looking for the latest version? Download LeoSetup-4.10-
final.exe (4.3 MB)' from 
http://sourceforge.net/projects/leo/files/Leo/4.10%20final/
  or - better - just remove the installer. Its not 'final'. Its
broken.
- in 
http://webpages.charter.net/edreamleo/installing.html#installing-leo-on-windows
replace target of link 'Leo’s download page' with http://www.greygreen.org/leo/
- in leo-editor-latest.zip add a windows-friendly-batch called
launchLeo.bat in folder where launchLeo.py resides.
  contents of the .bat:
  --- snip ---
@echo off

  REM if your python.exe is not on your PATH, add full path to your
python.exe here
  set PYTHON_TO_USE=python.exe

  REM DO NOT EDIT FROM HERE
  set LEO_TO_START=%~dp0launchLeo.py
  set DIR_TO_WORK_IN=%~dp1
  set FILE_TO_OPEN=%~nx1
  cd %DIR_TO_WORK_IN%
  %PYTHON_TO_USE% %LEO_TO_START% %FILE_TO_OPEN%
  REM  see 'Using batch parameters' at
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx
  --- snip ---
- at http://www.greygreen.org/leo/:
  after 'To run Leo (...)' add: 'Hint: if the downloaded zip is
broken, deactive your lousy configured proxy' ;-)
- at 
http://webpages.charter.net/edreamleo/installing.html#installing-leo-on-windows
add the text:
  4. to register *.leo files with Leo:
     run launchLeo.py
     in Leo, create a file C:\myCode.leo
     close Leo
     in Explorer, click the C:\myCode.leo
     as program to open select the topmost launchLeo.bat in the Leo
directory.
     if clicking *.leo files still does not work, then python is not
on your PATH. In that case open that launchLeo.bat and set the correct
path to your python.exe

  5. to give *.leo files an icon:
      (gosh, i forgot how to do that on windose7, can anyone help
out?)

thats just a suggestion from my side to help the windows people. Dont
take it personally :-)

im now going through the leoDocs.leo. Have a lot of questions, lets
see if the tut answers them.

thanks, Nils

[1] (but it works if called with python instead of pythonw).

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to