Is it possible to have Stata read my .bash_profile when using the shell command? If not, please consider this a small feature request. Details and context below.
I would like to have a do file call a small Python script I wrote that cleans up some table output before I typeset it. I can do that by providing an explicit path to the Python interpreter (actually to a symlink that points to the interpreter), but that's bad practice (see, http://en.wikipedia.org/wiki/Env).
This works:
These do not:
The reason that the second set doesn't work is that my .bash_profile adds the path to the interpreter to the PATH environment variable, and Stata does not read it for shell usage. It would be nice if Stata read it, both for this reason and to make use of custom command aliases without swapping to a Terminal window. Clearly, this isn't a big deal, but it would be nice.
I would like to have a do file call a small Python script I wrote that cleans up some table output before I typeset it. I can do that by providing an explicit path to the Python interpreter (actually to a symlink that points to the interpreter), but that's bad practice (see, http://en.wikipedia.org/wiki/Env).
This works:
Code:
shell /usr/local/bin/python3 table_clean.py
Code:
shell /usr/bin/env python3 table_clean.py shell ./table_clean.py