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

site.execsitecustomize

Prev: site.enablerlcompleter | Up: site | Next: site.execusercustomize
Rel: site.abs_paths, site.addpackage, site.addsitedir, site.addsitepackages
Ref: docs.python.org — site.execsitecustomize
Tags: #public #python3 #stdlib #site


Import

import site
from site import execsitecustomize

Signature & Overview

site.execsitecustomize()

Run custom site specific code, if available.

Usage

import site

# Imports sitecustomize.py if present on sys.path
assert callable(site.execsitecustomize)

Gotchas

REPL Inspect

from site import execsitecustomize
help(execsitecustomize)

Linked from

Related notes