Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Christian Heimes
Michael M Mason wrote: I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. The docs suggest that I can either add it to the PYTHONPATH environment variable or to the PythonPath key in the registry. However, PYTHONPATH doesn't exist, and updating t

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Mark Lawrence
Michael M Mason wrote: "Mark Lawrence" wrote in message news:mailman.4130.1249203322.8015.python-l...@python.org... Be careful, I'm screwed things up on several occasions by placing a file on PYTHONPATH that overrides a file in the standard library, test.py being my favourite! Thanks. Sure

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
"Mark Lawrence" wrote in message news:mailman.4130.1249203322.8015.python-l...@python.org... Be careful, I'm screwed things up on several occasions by placing a file on PYTHONPATH that overrides a file in the standard library, test.py being my favourite! Thanks. Sure enough, I've already got

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Mark Lawrence
Michael M Mason wrote: "Dave Angel" wrote in message news:mailman.4120.1249172970.8015.python-l...@python.org... Michael M Mason wrote: I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. Thanks to Jon, Piet, David and Dave for the responses.

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
"Dave Angel" wrote in message news:mailman.4120.1249172970.8015.python-l...@python.org... Michael M Mason wrote: I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. Thanks to Jon, Piet, David and Dave for the responses. sys.path gets its values

Re: Newbie thwarted by sys.path on Vista

2009-08-01 Thread David Lyon
On Sat, 1 Aug 2009 22:58:53 +0100, "Michael M Mason" wrote: > I'm running Python 3.1 on Vista and I can't figure out how to add my own > directory to sys.path. > > The docs suggest that I can either add it to the PYTHONPATH environment > variable or to the PythonPath key in the registry. Howe

Re: Newbie thwarted by sys.path on Vista

2009-08-01 Thread Dave Angel
Michael M Mason wrote: I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. The docs suggest that I can either add it to the PYTHONPATH environment variable or to the PythonPath key in the registry. However, PYTHONPATH doesn't exist, and updating

Re: Newbie thwarted by sys.path on Vista

2009-08-01 Thread Piet van Oostrum
> "Michael M Mason" (MMM) wrote: >MMM> I'm running Python 3.1 on Vista and I can't figure out how to add my own >MMM> directory to sys.path. >MMM> The docs suggest that I can either add it to the PYTHONPATH environment >MMM> variable or to the PythonPath key in the registry. However, PYTHO

Re: Newbie thwarted by sys.path on Vista

2009-08-01 Thread Jon Clements
On 1 Aug, 22:58, "Michael M Mason" wrote: > I'm running Python 3.1 on Vista and I can't figure out how to add my own > directory to  sys.path. > > The docs suggest that I can either add it to the PYTHONPATH environment > variable or to the PythonPath key in the registry.  However, PYTHONPATH > doe