[Ipe-discuss] Checking HOSTNAME in an ipelet

Dmitriy Morozov ipe at foxcub.org
Tue Nov 9 00:47:55 CET 2010


>> if os.getenv("HOSTNAME") == "cole" then
>
> Ipelets run in a protected environment.
>
> Use _G.os.getenv to access the getenv function.

_G.os.getenv("HOSTNAME") returned nil, whereas from within Lua
interpreter it returns the actual hostname.



More information about the Ipe-discuss mailing list