Lua Memo

環境変数を返す

os.getenv (varname)

プロセスの環境変数 varname の値を返す。未定義なら nil を返す。

sample

print(os.getenv("OS"))