os system command not found
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Wed Jan 14 07:16:40 EST 2009
On Wed, 14 Jan 2009 02:25:52 -0800, codicedave wrote:
> Hi all!
> I installed a external program called infomap using the classical
> procedure
>
> ./configure
> make
> sudo make install
>
> and it works perfectly in Terminal (Os x) using both bash and tcsh
> shell
What happens when you call it using the sh shell (which is not
necessarily aliased to bash)?
[...]
> but when I call it from python using os.system or subprocess.call I
> get the message "sh: infomap-build: command not found".
>
> Do you know why?
Possibly sh uses a different path to bash and can't find infomap-build.
--
Steven
More information about the Python-list
mailing list