emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Sheng Xue <xuesheng.home@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: How to make python files being found by the function "executable-find"?
Date: Fri, 30 Dec 2011 10:33:57 -0500	[thread overview]
Message-ID: <13747.1325259237@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Sheng Xue <xuesheng.home@gmail.com> of "Fri\, 30 Dec 2011 13\:47\:47 +0100." <CAJ1BQLKuO8v9dUNnuZiPPSqXSAkMawuyiCWrOwHW_00bYDL3BA@mail.gmail.com>

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

      reply	other threads:[~2011-12-30 15:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13747.1325259237@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=xuesheng.home@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).