Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #6586 > unrolled thread

Alternatives to PythonPath

Started byray <ray@aarden.us>
First post2011-05-29 14:49 -0700
Last post2011-06-01 00:54 -0300
Articles 4 — 4 participants

Back to article view | Back to comp.lang.python


Contents

  Alternatives to PythonPath ray <ray@aarden.us> - 2011-05-29 14:49 -0700
    Re: Alternatives to PythonPath Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-05-30 00:31 +0200
    Re: Alternatives to PythonPath rusi <rustompmody@gmail.com> - 2011-05-29 19:26 -0700
    Re: Alternatives to PythonPath "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-06-01 00:54 -0300

#6586 — Alternatives to PythonPath

Fromray <ray@aarden.us>
Date2011-05-29 14:49 -0700
SubjectAlternatives to PythonPath
Message-ID<c57c7393-51cb-4b7b-9b06-a29976aa94f0@x3g2000yqj.googlegroups.com>
I am using Win7 on a tightly locked down desktop.

Is there an alternative to using PythonPath?

What are the trade-offs?

Thanks,
ray

[toc] | [next] | [standalone]


#6590

FromIrmen de Jong <irmen.NOSPAM@xs4all.nl>
Date2011-05-30 00:31 +0200
Message-ID<4de2c92d$0$49182$e4fe514c@news.xs4all.nl>
In reply to#6586
On 29-5-2011 23:49, ray wrote:
> I am using Win7 on a tightly locked down desktop.
> 
> Is there an alternative to using PythonPath?
> 

What do you mean by "using PythonPath"?
What doesn't work that you want to have an alternative for?

Irmen

[toc] | [prev] | [next] | [standalone]


#6612

Fromrusi <rustompmody@gmail.com>
Date2011-05-29 19:26 -0700
Message-ID<ec3e23fe-843b-42ef-9f65-25ef90822c3c@s41g2000prb.googlegroups.com>
In reply to#6586
On May 30, 2:49 am, ray <r...@aarden.us> wrote:
> I am using Win7 on a tightly locked down desktop.
>
> Is there an alternative to using PythonPath?
>
> What are the trade-offs?
>
> Thanks,
> ray

Externally:
1. PYTHONPATH

2. .pth files
http://bob.pythonmac.org/archives/2005/02/06/using-pth-files-for-python-development/
http://docs.python.org/library/site.html

And of course there the internal sys.path

[toc] | [prev] | [next] | [standalone]


#6783

From"Gabriel Genellina" <gagsl-py2@yahoo.com.ar>
Date2011-06-01 00:54 -0300
Message-ID<mailman.2353.1306900474.9059.python-list@python.org>
In reply to#6586
En Sun, 29 May 2011 18:49:28 -0300, ray <ray@aarden.us> escribió:

> I am using Win7 on a tightly locked down desktop.
>
> Is there an alternative to using PythonPath?
>
> What are the trade-offs?

Usually there is no need to define the PYTHONPATH variable; I never use it.
There is a per-user site-packages directory (2.6 and up), on Windows it is  
located at %APPDATA%\Python\PythonXX\site-packages. Every user gets its  
own %APPDATA% directory, with read and write permissions.

-- 
Gabriel Genellina

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web