Shell + Python?

Geoff Canyon gcanyon at gmail.com
Sat Jul 15 13:05:27 EDT 2023


In terminal, this works:

python -c "print('hello world')"


In LiveCode, this:

*put* shell("python -c " & quote & "print('hello world')" & quote)

puts this:

/bin/sh: line 1: python: command not found

while this:

*put* shell("pwd")

puts this:

/Applications/LiveCode 9.6.9.app

So any idea why terminal can find python but LC's shell function can't?


More information about the use-livecode mailing list