summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #4865: add /Library/Python/2.7/site-packages toRonald Oussoren2009-03-301-2/+4
| | | | | sys.path on OSX, to make it easier to share (some) installed packages between the system install and a user install.
* Docstring typoAndrew M. Kuchling2008-05-101-1/+1
|
* Add --user option to build_extChristian Heimes2008-05-091-1/+1
|
* Implemented PEP 370Christian Heimes2008-05-061-48/+185
|
* Add the correct build dir when building with pydebug.Georg Brandl2008-01-211-0/+2
|
* Fix docstring for add_package in site.py.Georg Brandl2007-05-191-2/+4
|
* Patch #1677862: Require a space or tab after import in .pth files.Martin v. Löwis2007-03-121-1/+1
|
* Patch #1540892: site.py Quitter() class attempts to close sys.stdinKurt B. Kaiser2006-08-161-0/+6
| | | | | | | | | | before raising SystemExit, allowing IDLE to honor quit() and exit(). M Lib/site.py M Lib/idlelib/PyShell.py M Lib/idlelib/CREDITS.txt M Lib/idlelib/NEWS.txt M Misc/NEWS
* Update the docstring to use a version a little newer than 1999. This wasNeal Norwitz2006-08-151-3/+3
| | | | taken from a Debian patch. Should we update the version for each release?
* Fix site module docstring to match the code for Mac OSX, tooNick Coghlan2006-06-121-3/+4
|
* Fix site module docstring to match the codeNick Coghlan2006-06-121-2/+2
|
* Adjust whitespace.Neal Norwitz2006-04-111-1/+1
|
* Updated the warnings, linecache, inspect, traceback, site, and doctest modulesPhillip J. Eby2006-04-111-0/+2
| | | | | to work correctly with modules imported from zipfiles or via other PEP 302 __loader__ objects. Tests and doc updates are included.
* Whitespace normalization.Tim Peters2006-03-101-1/+1
|
* Patch #1446372: quit and exit can now be called from the interactiveGeorg Brandl2006-03-091-4/+13
| | | | interpreter to exit.
* Fix bug in addsitedir() to properly handle the lack of a second argument.Brett Cannon2004-07-201-3/+3
| | | | | | Fixed to keep backwards-compatibility for the undocumented function. Closes bug #986795.
* Change argument list for addsitedir() to not require a second argument and thusBrett Cannon2004-07-091-1/+1
| | | | | match old verion's argument list (overlooked since API of the file is undocumented).
* Whitespace normalization.Tim Peters2004-07-071-1/+1
|
* Refactored site.py into functions. Also moved over to using sets.Brett Cannon2004-06-051-203/+236
| | | | New regression test suite.
* Back out last patch that removed an entry from sys.path if it was not anBrett Cannon2004-03-211-1/+1
| | | | | existent path. Pointed out by jvr that entries could be non-file items for custom importers.
* Remove non-existent paths.Brett Cannon2004-03-201-1/+1
|
* Fix how line endings were handled when iterating over a .pth file by strippingBrett Cannon2004-03-201-2/+1
| | | | all whitespace at the end of the path line.
* We have cp932 support in standard distribution now. And there's nowHye-Shik Chang2004-02-131-4/+3
| | | | no major codepages unsupported by Python, so remove the eg. case.
* Replace backticks with repr() or "%r"Walter Dörwald2004-02-121-1/+1
| | | | From SF patch #852334.
* To find the curses extension as a DLL (on OS/2), we need to adjust theAndrew MacIntyre2003-12-021-0/+15
| | | | | | library search path to include the extension directory. Without this, the curses_panel extension can't find the curses extension/DLL, which exports some curses symbols to it.
* Fix a bunch of typos in documentation, docstrings and comments.Walter Dörwald2003-10-201-1/+1
| | | | (From SF patch #810751)
* Repair operator error.Jeremy Hylton2003-07-181-8/+3
|
* SF patch 773476: NameError when there are no prefixes.Jeremy Hylton2003-07-181-3/+9
|
* In an OSX framework build Python could fail if HOME wasn't set, fixed.Jack Jansen2003-06-031-1/+1
| | | | Fixes #747954.
* Patch #734231: Update RiscOS support. In particular, correctMartin v. Löwis2003-05-101-1/+1
| | | | riscospath.extsep, and use os.extsep throughout.
* When on MacOSX, and only in a framework build, addJack Jansen2003-04-161-0/+13
| | | | ~/Library/Python/2.3/site-packages to sys.path, if it exists.
* Patch #671666: Alias ANSI code page to "mbcs".Martin v. Löwis2003-03-031-0/+16
|
* PEP 302 + zipimport:Just van Rossum2002-12-301-9/+4
| | | | | | | | | | | | | - new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
* Whitespace normalization.Tim Peters2002-11-091-1/+1
|
* Fix a problem in site.py which triggers in case sys.path is empty.Marc-André Lemburg2002-09-191-1/+2
| | | | Bugfix candidate for 2.2.2.
* Add an XXX comment and a pointer to a full bug report.Fred Drake2002-07-251-0/+2
|
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-3/+3
|
* Removed old Digital Creations copyright/license notices (withGuido van Rossum2002-04-041-1/+1
| | | | | permission from Paul Everitt). Also removed a few other references to Digital Creations and changed the remaining ones to Zope Corporation.
* OS/2 EMX port Library and regression test changes:Andrew MacIntyre2002-02-241-1/+3
| | | | | | | | | | | Lib/ os.py os2emxpath.py // added - OS/2 EMX specific path manipulation routines popen2.py site.py Lib/test/ test_fcntl.py test_longexp.py
* SF #515020, delete global variables which are used only for temporaryNeal Norwitz2002-02-111-1/+2
| | | | values in for loops (dircase, prefix, sitedir).
* Don't use Latex \code{...} in docstrings.Guido van Rossum2001-12-171-1/+1
|
* Get rid of the stupid backslash in front of the column zero openBarry Warsaw2001-12-171-1/+1
| | | | | | | | | paren. This was there to worm around a stupid XEmacs bug, but since I can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's possible the problem has been fixed. We shouldn't have to be working around editor bugs anyway. If it crops up again, I'll report it (again) to the XEmacs crowd.
* 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.