summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch #474590 -- RISC OS supportGuido van Rossum2001-10-241-6/+1
|
* Correct the URL for the license (only used when the LICENSE[.txt] fileGuido van Rossum2001-10-021-1/+1
| | | | | is not found). Being fancy: insert the first 3 characters of sys.version in the URL.
* Patch #445762: Support --disable-unicodeMartin v. Löwis2001-08-171-1/+2
| | | | | | | | - Do not compile unicodeobject, unicodectype, and unicodedata if Unicode is disabled - check for Py_USING_UNICODE in all places that use Unicode functions - disables unicode literals, and the builtin functions - add the types.StringTypes list - remove Unicode literals from most tests.
* Rewrote Jack's latest change so it does what it intended to do...Just van Rossum2001-08-151-4/+8
|
* Don't remove non-directories from sys.path on the mac: filesJack Jansen2001-08-151-2/+3
| | | | can be on sys.path too.
* Make the add*() helper functions more robust for use after intializationFred Drake2001-07-201-6/+33
| | | | | | | | is complete: recompute _dirs_in_sys_path each time these functions are entered after module initialization is complete, and reset before returning to user code. This closes SF patch #442983.
* Copying this 2.1.1 bugfix to the trunk:Guido van Rossum2001-07-201-1/+0
| | | | | | | | | Fix showstopper SF bug #442983: use of site.addsitedir() was broken because it references the global dirs_in_sys_path which is deleted. The fix avoids deleting that global. (My email through python.org or digicool.com is non-functional at the moment; use gvanrossum@home.com to reach me.)
* Actually remove directories from sys.path if they do not exist; the intentFred Drake2001-07-121-0/+4
| | | | is to avoid as many stat() calls as we can.
* PEP 250: Add lib/site-packages to sys.path on Windows; also sys.prefixTim Peters2001-07-121-3/+1
| | | | to sys.path if os.sep == ':' (Macs?). See PEP 250.
* Avoid using os.path.normcase() on sys.path elements; doing so causes pathsFred Drake2001-07-021-19/+22
| | | | | | to be presented in an unfamiliar case on case-preserving filesystems. This closes SF patch #436173.
* Add new built-in 'help' which invokes pydoc.help (with a twist).Guido van Rossum2001-06-121-0/+14
|
* Two minor changes for better Jython compatibility. Finn Bock says:Barry Warsaw2001-03-231-3/+3
| | | | | | | | | | | | | Change 1: Not all 'modules' in sys.modules have a sensible __file__ attribute. Some of our java package can have the __file__ attribute set to None. Change 2: In jython we have the jython license file in <root> and the CPython license file in <root>/Lib. By reversing the search sequence jython will find and show the jython license file before the CPython file. Closes SF patch #405853.
* RISCOS changes by dschwertberger.Guido van Rossum2001-03-021-1/+7
|
* A hack to augment sys.path with the build/lib.<platform> directoryGuido van Rossum2001-01-191-0/+9
| | | | | | | | | | created by Andrew's setup.py script, *if* we're actually running from the build directory. (The test for that: whether the sys.path[-1] ends in "/Modules".) This has one disadvantage: it imports a fair amount of code from the distutils package, just in order to be able to calculate the correct pathname. See if I care. :-)
* Patch #103134: Support import lines in pth files.Martin v. Löwis2001-01-111-1/+4
|
* The ".pth" code knew about the layout of Python trees on unix andJack Jansen2000-12-121-0/+2
| | | | windows, but not on the mac. Fixed.
* Fix `credits' to credit the Jython developers when running under thatBarry Warsaw2000-12-061-3/+9
| | | | | interpreter. Update and reword the credits for CPython. Closes SF patch #102665.
* Fix a few problems with the _Printer class and the license variable.Guido van Rossum2000-10-031-23/+41
| | | | | | | | | | | | | | | | 1. repr(license) will no longer print to stdout and read from stdin; you have to use license(). `license` is a short message explaining this. 2. Use lazy initialization so that startup isn't slowed down by the search for the LICENSE file. 3. repr(license) actually returns the desired string, rather than printing to stdout and returning ''. (Why didn't we think of this before?) 4. Use the pythonlabs license URL as the license fallback instead of the CNRI license handle.
* Convert all entries on sys.path to absolute paths, and also update theFred Drake2000-09-281-8/+31
| | | | | | | | | | | | | __file__ attributes of already-imported modules to be absolute. This helps robustify the interpreter against os.chdir() calls from the application. Only remove setdefaultencoding() from sys if it exists; if this module is run as a script (since there is a _test() function that gets run), it broke because the script attempts to remove it again after the import of site has already done so. This allows the module to be run as a script again. makepath(): New function, standardizes all pathname normalization in one place.
* sys.setdefaultencoding() should only be called in case the standardMarc-André Lemburg2000-09-181-2/+3
| | | | | | | | default encoding ("ascii") is changed. This safes quite a few cycles during startup since the first call to .setdefaultencoding() will initialize the codec registry and the encodings package. See python-dev for a discussion (Subject: "[Python-Dev] [comp.lang.python] sys.setdefaultencoding (2.0b1)").
* Add new builtin commands "copyright", "license", "credits" whichGuido van Rossum2000-09-051-1/+52
| | | | display the information you would expect them to display.
* -- fixed the comment, tooFredrik Lundh2000-07-151-3/+3
|
* -- note to self: wait until 'cvs commit' has finished beforeFredrik Lundh2000-07-151-3/+2
| | | | you edit the file.
* -- changed default encoding to "ascii". you can still changeFredrik Lundh2000-07-151-17/+13
| | | | the default via site.py...
* -- removed get_default compatibility kludgeFredrik Lundh2000-07-101-1/+1
| | | | -- added a few extra comments to locale.py
* typos fixed by Rob HooftJeremy Hylton2000-06-281-1/+1
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-071-2/+37
| | | | | | | | | | Added support to set the default encoding of strings at startup time to the values defined by the C locale. The sys.setdefaultencoding() API is deleted after having set up the encoding, so that user code cannot subsequentely change the setting. This effectively means that only site.py may alter the default setting.
* Wrong pathname in docstring detected by Fredrik Nehr.Guido van Rossum1998-11-251-1/+1
|
* Add built-in string variables 'quit' and 'exit' that display a hint onGuido van Rossum1998-08-071-0/+12
| | | | | | how to exit (in a platform dependent way!). We use os.sep to determine which platform we're on, since I expect that this will work better for minority platforms.
* Mass check-in after untabifying all files that need it.Guido van Rossum1998-03-261-31/+31
|
* Update the doc string to emphasize non-Unix behavior earlier;Guido van Rossum1998-01-131-7/+5
| | | | sys.prefix is no longer empty on any platform that I know of.
* Change packages -> site-packagesGuido van Rossum1997-09-081-8/+10
|
* Different test for Unix -- rely on os.sep instead of sys.platform.Guido van Rossum1997-09-031-3/+3
|
* Give in to Mike Meyer -- add *both* lib/python1.5/packages andGuido van Rossum1997-09-031-7/+9
| | | | | lib/site-python to the path (if they exist). This is a reasonable compromise.
* #Removed debug print that was accidentally left in.Guido van Rossum1997-09-031-2/+0
|
* New site.py semantics. Searches inGuido van Rossum1997-08-291-28/+103
| | | | | <*prefix>/lib/python<version>/packages for *.pth files containing directories that are appended to sys.path.
* site customization hook...Guido van Rossum1996-08-171-0/+47