RosettaCodeData/Task/Environment-variables/Lingo/environment-variables.lingo
2023-07-01 13:44:08 -04:00

6 lines
162 B
Text

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