The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

import-bot (20211) [Avatar] Offline
#1
Re: editing sys.path ?
[Originally posted by hsfrey]

Daryl:

Never Mind! Apparently it's just a plain old string and can be edited with
no problem. With a name prefixed with sys, who'da thunk it?

Harvey
import-bot (20211) [Avatar] Offline
#2
[Originally posted by hsfrey]

Hi Daryl:

Is there any way I can edit sys.path? It comes out a kloodge, with the same
directory present multiple times, depending on case and long or short
filename.
I've used PYTHONPATH to add a directory (which doesn't end up in front), but
I'd really like to clean up sys.path entirely. Is it possible? I'm on Win95,
using Python 1.5.2 and Idle.

Harvey