File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import, this is no longer necessary (but code that does it still
1111works).
1212
13- This will append site-specific paths to to the module search path. It
14- starts with sys.prefix and sys.exec_prefix (if different) and appends
15- lib/python<version>/site-packages as well as lib/site-python. The
13+ This will append site-specific paths to to the module search path. On
14+ Unix, it starts with sys.prefix and sys.exec_prefix (if different) and
15+ appends lib/python<version>/site-packages as well as lib/site-python.
16+ On other platforms (mainly Mac and Windows), it uses just sys.prefix
17+ (and sys.exec_prefix, if different, but this is unlikely). The
1618resulting directories, if they exist, are appended to sys.path, and
1719also inspected for path configuration files.
1820
5355site-specific customizations. If this import fails with an
5456ImportError exception, it is silently ignored.
5557
56- Note that for some non-Unix systems, sys.prefix and sys.exec_prefix
57- are empty, and then the path manipulations are skipped; however the
58- import of sitecustomize is still attempted.
59-
6058"""
6159
6260import sys , os
You can’t perform that action at this time.
0 commit comments