* How to make python files being found by the function "executable-find"?
@ 2011-12-30 12:47 Sheng Xue
2011-12-30 15:33 ` Nick Dokos
0 siblings, 1 reply; 2+ messages in thread
From: Sheng Xue @ 2011-12-30 12:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 234 bytes --]
Hi all,
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.
Best regards,
Sheng
[-- Attachment #2: Type: text/html, Size: 397 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to make python files being found by the function "executable-find"?
2011-12-30 12:47 How to make python files being found by the function "executable-find"? Sheng Xue
@ 2011-12-30 15:33 ` Nick Dokos
0 siblings, 0 replies; 2+ messages in thread
From: Nick Dokos @ 2011-12-30 15:33 UTC (permalink / raw)
To: Sheng Xue; +Cc: nicholas.dokos, emacs-orgmode
Sheng Xue <xuesheng.home@gmail.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-12-30 15:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-30 12:47 How to make python files being found by the function "executable-find"? Sheng Xue
2011-12-30 15:33 ` Nick Dokos
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).