[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to make python files being found by the function "executable
From: |
Nick Dokos |
Subject: |
Re: [O] How to make python files being found by the function "executable-find"? |
Date: |
Fri, 30 Dec 2011 10:33:57 -0500 |
Sheng Xue <address@hidden> wrote:
> I added ".py" to the exec-suffixed :
>
> (setq exec-suffixes (cons ".py" exec-suffixes))
>
> but the function "exectuable-find" still can't find *.py files. Any idea?
>
> I am running emacs on Windows 7. Thanks.
>
Can't help with Windows, but when I tried it on Linux, it found a .py file:
(executable-find "ana")
"/home/nick/bin/ana.py"
Necessary prerequisites:
o my PATH included /home/nick/bin
o /home/nick/bin/ana.py is executable
o ".py" has been added to exec-suffixes as above.
In particular, executable-find will *not* find .py files (even
executable ones) in an arbitrary directory; it will also *not* find .py
files in a directory in your PATH if they are not marked executable (on
Linux, the mode of the file has to be set to something like 755 for it
to be executable).
Nick