On this page
  1. site.abs_paths
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from site import abs_paths
help(abs_paths)

Linked from

Related notes