From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: How to make python files being found by the function "executable-find"? Date: Fri, 30 Dec 2011 10:33:57 -0500 Message-ID: <13747.1325259237@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgeT3-0001Rb-Mn for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 10:34:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RgeT2-0007aD-M8 for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 10:34:01 -0500 Received: from g6t0185.atlanta.hp.com ([15.193.32.62]:15426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RgeT2-0007Zx-GE for emacs-orgmode@gnu.org; Fri, 30 Dec 2011 10:34:00 -0500 In-Reply-To: Message from Sheng Xue of "Fri\, 30 Dec 2011 13\:47\:47 +0100." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sheng Xue Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Sheng Xue wrote: > I added ".py" to the exec-suffixed : > =C2=A0 > (setq exec-suffixes (cons ".py" exec-suffixes)) > =C2=A0 > but the function "exectuable-find" still can't find *.py files.=C2=A0=C2= =A0Any idea? > =C2=A0 > I am running emacs on Windows 7. Thanks. > =C2=A0 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