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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -