On Mon, Oct 14, 2019 at 9:50 PM 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. g.app.loadDir is the leo/core directory. c.fileName() is the .leo file itself, so you can use os.path.dirname(c.fileName()) to get the directory containing the .leo file. >From inside a file, you can use os.path.dirname(__file__). etc. 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/CAMF8tS2G_G2_qinBq3m1B%3D2Jw0RNGKoi7STCtUp4vWr7uwCqWg%40mail.gmail.com.
