Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '2.7': 0.05; '3.2': 0.07; 'mess': 0.07; 'received:localnet': 0.07; 'python': 0.07; '(there': 0.09; 'stating': 0.09; 'wrote:': 0.14; '"real"': 0.16; '*nix': 0.16; 'elsewhere,': 0.16; 'name).': 0.16; 'sessions?': 0.16; 'exists': 0.19; 'tree': 0.20; 'cc:2**0': 0.20; 'code,': 0.20; 'variable': 0.21; '(or': 0.22; 'code': 0.22; 'header:In-Reply- To:1': 0.22; 'directory.': 0.23; 'windows': 0.26; 'testing': 0.28; 'etc.)': 0.29; 'it.': 0.31; 'separate': 0.31; 'to:addr:python- list': 0.32; 'another': 0.32; 'thank': 0.32; 'sorry': 0.33; 'several': 0.33; 'test': 0.33; 'header:User-Agent:1': 0.35; 'apologies': 0.35; 'usually': 0.36; 'folder': 0.36; 'received:au': 0.36; 'shows': 0.36; 'setting': 0.36; 'some': 0.37; 'it?': 0.37; 'exactly': 0.37; 'useful': 0.37; 'issue': 0.37; 'ways': 0.38; 'user': 0.38; 'url:org': 0.38; 'so,': 0.38; 'url:au': 0.39; 'set': 0.39; 'to:addr:python.org': 0.39; 'where': 0.39; 'works': 0.40; 'sets': 0.40; 'opened': 0.60; 'address': 0.61; 'header:Message- Id:1': 0.62; '2011': 0.62; 'special': 0.66; 'home': 0.67; 'care': 0.67; 'surname': 0.91 From: Algis Kabaila Organization: PCUG - Users Helping Users To: python-list@python.org Subject: Re: PYTHONPATH Date: Sat, 16 Apr 2011 17:28:14 +1000 User-Agent: KMail/1.13.5 (Linux/2.6.35-25-generic-pae; KDE/4.5.1; i686; ; ) References: <%K8qp.22913$J36.20343@newsfe08.iad> In-Reply-To: <%K8qp.22913$J36.20343@newsfe08.iad> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: harrismh777 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 47 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1302938888 news.xs4all.nl 41103 [::ffff:82.94.164.166]:58001 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3303 On Saturday 16 April 2011 14:16:59 harrismh777 wrote: > Algis Kabaila wrote: > > Is PYTHONPATH a system variable that sets the > > path for several sessions and if so, where in the system is > > it? Do I need to create one for setting python path for > > several sessions? > >snip... > Of course this only works if the Python folder exists in the > users ~/ directory tree (or elsewhere, if you code it that > way). > > By default the sys.path always shows the directory python was > opened in, usually the users home directory. With .profile > you can set the path any way you want... most useful for > setting up special test directories ahead of the "real" > code, or for setting up separate directories for versions--- > one for Python26, Python27, and of course Python32. > > > (there are other ways of accomplishing the same thing, and of > course, this one only really works with *nix systems--- > windows is another mess entirely) > > kind regards, > m harris My apologies for not stating that I do use a "nix" system - kubuntu 10.10. I switche to ubuntu/kubuntu from suse some time ago. Suse had by default a ~/bin directory. On ubuntu/kubuntu the user needs to create it. Thank you for your contribution - you adressed exactly the issue that I wanted to take care of - testing different systems (PyQt v. PySide, Python 2.7 v Python 3.2 etc.) It is a significant help! Sorry I can not address you by name, as your signature is suggestive that it may start with M and that Harris is your surname (or pseudo name). You have been most helpful! OldAl. -- Algis http://akabaila.pcug.org.au/StructuralAnalysis.pdf