> > 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. (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?) -matt -- 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/bc454dd8-badc-4cf2-804a-6aed5d5a1090%40googlegroups.com.
