At 04:20 PM 8/31/2007, you wrote: >"Dick Moores" <[EMAIL PROTECTED]> wrote > > > and ulipad.pyw. How can I get back to where I was before, without > > that annoying console opening? > >Sorry, no idea - thats why I never install alpha software! :-) > > > PYTHONPATH: > > E:\Python25\;E:\PythonWork\;E:\Programs\Ulipad3.7\ > > > > And another question is, exactly what should go into PYTHONPATH? > > I've > > never been clear about that. > >Its what goes into sys.path. > >In other words its where your local modules are stored. Using an >environment variable rather than a path file, as is often suggested, >allows each user to have their own module library, and even >multiple libraries by using a script to launch Python that redefines >PYTHONPATH before starting Python. Or you can do it manually. >Much more flexible. I'm a big fan of environment variables!
I don't think I follow you, Alan. I thought I was using environment variables. In XP, System Properties | Advanced | Environment Variables | System Variables. That's where path and PYTHONPATH are. There are subfolders with local modules in E:\PythonWork\. Do I have to list them too? And modules such as datetime.py, and random.pyare not local? I'm guessing not. Here what the sys.path doc says: ===================================== path A list of strings that specifies the search path for modules. Initialized from the environment variable PYTHONPATH, plus an installation-dependent default. As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the Python interpreter. If the script directory is not available (e.g. if the interpreter is invoked interactively or if the script is read from standard input), path[0] is the empty string, which directs Python to search modules in the current directory first. Notice that the script directory is inserted before the entries inserted as a result of PYTHONPATH. A program is free to modify this list for its own purposes. Changed in version 2.3: Unicode strings are no longer ignored. ======================================= And my PYTHONPATH again: E:\Python25\;E:\PythonWork\;E:\Programs\Ulipad3.7\. It seems that all subfolders of Python25/ would be initialized by default. I'm thinking that maybe if I uninstall and then reinstall 2.5.1. The problem I asked about would clear up. Thoughts about this, anyone? Thanks, Dick >Alan G > > >_______________________________________________ >Tutor maillist - Tutor@python.org >http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor