> Unfortunately, there is a fly in the ointment.  I have an external file at 
> a location that uses "..", like this:
>
> - @path d:/Tom/devel/leo/plugins
>     -@file ../plugins/viewrendered3.py
>
>
On my OS X machine the above pattern doesn’t work at all (unclear about the 
reasoning for the pattern too).
I must take out the “../plugins/“ part of the @file for it to be able 
write/read the file. 

And this is after a clean pull of devel branch.

-TK


 

>
> [email protected]
>
> On Friday, April 9, 2021 at 10:11:49 PM UTC-4 [email protected] 
> <https://groups.google.com/> wrote:
> It looks like there is a simple fix.  This hasn't had hardly any testing, 
> but on the surface it's doing the right thing.  The little example that 
> failed in an earlier post created the right directories.
>
> In *leoCommands.py*, in the method *expand_path_expression(self, s)*, add 
> the line marked below
>
>     val = ''.join(aList)
>     *val = os.path.expanduser(val)  # <===== Add this line*
>     if g.isWindows:
>         val = val.replace('\\', '/')
>     return val
>

-- 
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/852554d0-a782-4ed8-9f70-640f791d13c9n%40googlegroups.com.

Reply via email to