all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: Fabian Ezequiel Gallina <galli.87@gmail.com>
Cc: "Andreas Röhler" <andreas.roehler@online.de>, emacs-devel@gnu.org
Subject: Re: Getting Python system paths for CEDET
Date: Sat, 13 Oct 2012 22:32:36 +0200	[thread overview]
Message-ID: <87r4p2aza3.fsf@engster.org> (raw)
In-Reply-To: <CABq4mQtVBOgeDKywcLA6nGucE33CTxPLnO-6vnMCTVeWzNWCWw@mail.gmail.com> (Fabian Ezequiel Gallina's message of "Sat, 13 Oct 2012 16:41:51 -0300")

Fabian Ezequiel Gallina writes:
> (python-shell-internal-send-string "import sys;print ('\x00'.join(sys.path))")
>
> That will work on python 2 and 3 and will take into account virtualenv
> settings the user may have set.

Thanks, that's exactly what I was looking for. I will change our setup
code to use that function (if available, otherwise the old code will
have to do).

-David



  reply	other threads:[~2012-10-13 20:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-13  9:28 Getting Python system paths for CEDET David Engster
2012-10-13 12:14 ` Andreas Schwab
2012-10-13 12:26   ` David Engster
2012-10-13 15:13     ` Andreas Röhler
2012-10-13 17:20       ` David Engster
2012-10-13 19:41         ` Fabian Ezequiel Gallina
2012-10-13 20:32           ` David Engster [this message]
2012-10-13 12:41 ` Andreas Röhler

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

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

  git send-email \
    --in-reply-to=87r4p2aza3.fsf@engster.org \
    --to=deng@randomsample.de \
    --cc=andreas.roehler@online.de \
    --cc=emacs-devel@gnu.org \
    --cc=galli.87@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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.