help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs doesn't inherit PATH from environment


From: Larry Evans
Subject: Re: emacs doesn't inherit PATH from environment
Date: Tue, 13 Feb 2018 18:48:56 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/13/2018 06:11 PM, Emanuel Berg wrote:
Larry Evans wrote:

So, I still can't figure how to get emacs to
find pdf2txt.py in home/evansl/anaconda3/bin/
by setting PATH somehow.

Try to make the example as small as possible.
The one shown previously is pretty small!
Like a shell script or/and a Makefile that
echoes PATH and then execute the script.

Also try place a dummy executable in the same
dir and execute that. Does that work?

OK, but this Makefile is the same as the previous one
except for the echo of $PATH before the make and
the additional print and the execution of the
dummy_executable.sh script:
--{--cut here--
which:
        echo "PATH=$(PATH)"
        ls -ld /home/evansl/anaconda3/bin/pdf2txt.py
        cat dummy_executable.sh
        ./dummy_executable.sh
        which pdf2txt.py
--}--cut here--
Here's the result of invoking make from emacs:
--{--cut here--
-*- mode: compilation; default-directory: "~/prog_dev/python/pdfminer/pdfminer/" -*-
Compilation started at Tue Feb 13 18:47:20

make -k which
echo "PATH=/home/evansl/anaconda3/bin;/home/evansl/miniconda3/bin;/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
PATH=/home/evansl/anaconda3/bin;/home/evansl/miniconda3/bin;/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
ls -ld /home/evansl/anaconda3/bin/pdf2txt.py
-rwxrwxr-x 1 evansl evansl 3436 Feb 12 06:18 /home/evansl/anaconda3/bin/pdf2txt.py
cat dummy_executable.sh
#!/bin/bash
echo $PATH
./dummy_executable.sh
/home/evansl/anaconda3/bin;/home/evansl/miniconda3/bin;/home/evansl/dwnlds/depot_tools/depot_tools:/home/evansl/dwnlds/gsrc.top/install/bin:/home/evansl/bin:/opt/OpenPrinting-Gutenprint/sbin:/opt/OpenPrinting-Gutenprint/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
which pdf2txt.py
Makefile:29: recipe for target 'which' failed
make: *** [which] Error 1

Compilation exited abnormally with code 2 at Tue Feb 13 18:47:20

--}--cut here--

Does that help?

-regards,
Larry




reply via email to

[Prev in Thread] Current Thread [Next in Thread]