RosettaCodeData/Task/Environment-variables/Lingo/environment-variables.lingo

7 lines
162 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
sx = xtra("Shell").new()
if the platform contains "win" then
path = sx.shell_cmd("echo %PATH%").line[1]
else
path = sx.shell_cmd("echo $PATH").line[1]
end if