osx - why isn't python accessible from within a bash script? -



osx - why isn't python accessible from within a bash script? -

i have next script

cd desktop/rttex in $(find . -iname '*.rttex'); python unpack.py $i $i.png done

this should go through each file in folder , if matches .rttex extension should run python unpack.py (unpack.py takes file names infile.rttex , outfile.png arguments)

however when gets running of python script errors saying python command not found. works when python infile.rttex outfile.png run straight terminal.

is there need alter working within bash script?

first have run

which python

to find out binary located, , replace python phone call in script total path.

background is, not paths checked when executing scripts.

python osx bash

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -