I've added some g.es() hints as to what might have gone wrong.
- Stephen
On Nov 6, 9:40 am, "Kent Tenney" <[EMAIL PROTECTED]> wrote:
> On Fri, Nov 7, 2008 at 8:11 AM, thyrsus <[EMAIL PROTECTED]> wrote:
>
> > That's the error I got before the change ;-)
>
> > Do you have a $HOME/.leo directory? Can you write there?
>
> yes, yes
>
> > I also
> > changed the previous configuration for @string script_file_path = ../
> > test/scriptFile.py to @string script_file_path = scriptFile.py; if it
> > didn't get updated then leo will try to write to $HOME/test/
> > scriptFile.py, and that directory might not exist.
>
> That was it, after changing @string script_file_path, all is fine.
>
> Thanks,
> Kent
>
>
>
> > - Stephen
>
> > On Nov 6, 6:59 am, "Kent Tenney" <[EMAIL PROTECTED]> wrote:
> >> A recent revision has broken my
> >> <ctrl-b> (execute script)
> >> and <alt-x> debug
>
> >> It seems to result from this change
>
> >> === modified file 'leo/core/leoCommands.py'
> >> --- leo/core/leoCommands.py 2008-10-18 16:38:52 +0000
> >> +++ leo/core/leoCommands.py 2008-11-05 16:49:46 +0000
> >> @@ -1716,12 +1716,12 @@
> >> path = c.config.getString('script_file_path')
> >> if path:
> >> parts = path.split('/')
> >> - path = g.app.loadDir
> >> + path = g.app.homeLeoDir
> >> for part in parts:
> >> path = c.os_path_finalize_join(path,part)
> >> else:
> >> path = c.os_path_finalize_join(
> >> - g.app.loadDir,'..','test','scriptFile.py')
> >> + g.app.homeLeoDir,'scriptFile.py')
>
> >> # Write the file.
> >> try:
>
> >> I get the following from <ctrl-b>
>
> >> exception executing script
> >> Traceback (most recent call last):
> >> File "/home/ktenney/src/leo-editor/leo/core/leoCommands.py", line
> >> 1675, in executeScript
> >> execfile(scriptFile,d)
> >> TypeError: execfile() argument 1 must be string, not None
> >> --------------------
> >> line 1674: scriptFile =
> >> self.writeScriptFile(script)
> >> * line 1675: execfile(scriptFile,d)
> >> line 1676: else:
> >> line 1677: exec(script,d)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---