On this page
site.abs_paths
Up: site | Next: site.addpackage
Rel: site.addpackage, site.addsitedir, site.addsitepackages, site.addusersitepackages
Ref: docs.python.org — site.abs_paths
Tags: #public #python3 #stdlib #site
Import
import site
from site import abs_paths
Signature & Overview
site.abs_paths()
Set all module file and cached attributes to an absolute path
Usage
import site
# Converts relative entries in sys.path to absolute paths (called at startup)
assert callable(site.abs_paths)
Gotchas
- Internal startup helper run automatically unless
python3 -Sis used.
REPL Inspect
from site import abs_paths
help(abs_paths)
Linked from
- tuts/python3/stdlib_module/site
- tuts/python3/stdlib_module/site/addpackage
- tuts/python3/stdlib_module/site/addsitedir
- tuts/python3/stdlib_module/site/addsitepackages
- tuts/python3/stdlib_module/site/addusersitepackages
- tuts/python3/stdlib_module/site/check_enableusersite
- tuts/python3/stdlib_module/site/enablerlcompleter
- tuts/python3/stdlib_module/site/execsitecustomize
- tuts/python3/stdlib_module/site/execusercustomize
- tuts/python3/stdlib_module/site/gethistoryfile
- tuts/python3/stdlib_module/site/getsitepackages
- tuts/python3/stdlib_module/site/getuserbase
- tuts/python3/stdlib_module/site/getusersitepackages
- tuts/python3/stdlib_module/site/main
- tuts/python3/stdlib_module/site/makepath
- tuts/python3/stdlib_module/site/register_readline
- tuts/python3/stdlib_module/site/removeduppaths
- tuts/python3/stdlib_module/site/setcopyright
- tuts/python3/stdlib_module/site/sethelper
- tuts/python3/stdlib_module/site/setquit
- tuts/python3/stdlib_module/site/venv
Related notes
- tuts/python3/stdlib_module/site/addpackage Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addsitedir Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addsitepackages Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/addusersitepackages Linked here; links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/site/check_enableusersite links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/enablerlcompleter links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/execsitecustomize links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/execusercustomize links to this page; shared tags: #site, #stdlib
- tuts/python3/stdlib_module/site/gethistoryfile links to this page; shared tags: #site, #stdlib