summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* 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