On Wed, Oct 16, 2019 at 12:34 AM Matt Wilkie <[email protected]> wrote:
> What's Leo's idiomatic way to get the path of the currently running script >>> in Leo? >>> >> >> Not sure I know what you mean by the "currently running script". There >> are several ways of getting important directories. >> > > I meant the name of the file that is created and then run when executing > Ctrl-B or using @button. It's part of troubleshooting #1376 > <https://github.com/leo-editor/leo-editor/issues/1376#issuecomment-542025652>. > I have since determined Ctrl-B name is predictable: always > HOME/.leo/scriptFile.py. > Glad you figured this out. (It occurs to me re-using the same name is a problem waiting to happen. Now > that multiple Leo sessions can run concurrently so long as they're not > editing the same .leo file, who's to say which one created the file that's > about to be run?) > Seems like a low priority to me, unless the multiple Leo sessions were opened by humans and not a script. Feel free to create a new issue if you think this is important. Edward -- 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/CAMF8tS2UOPBb10Qi6XxA0R3R1irwpaYbBjpNs1R1_N3uQ%3D8nCQ%40mail.gmail.com.
