Re: Checking HOSTNAME in an ipelet
Otfried Cheong <[email protected]>
| Newsgroups | gmane.comp.graphics.ipe.general |
|---|---|
| Organization | Ipe Headquarter |
| Message-ID | <[email protected]> |
Dmitriy Morozov wrote:
> I know nothing about Lua, so this question is probably stupid, but
> that just means someone can answer it easily.
>
> I'm trying to customize window size and autosave_filename depending on
> the HOSTNAME set in the environment. I have a my_prefs.lua ipelet that
> tries to do something like
>
> if os.getenv("HOSTNAME") == "cole" then
Ipelets run in a protected environment.
Use _G.os.getenv to access the getenv function.
Otfried