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

sysconfig.get_path

Prev: sysconfig.get_makefile_filename | Up: sysconfig | Next: sysconfig.get_path_names
Rel: sysconfig.get_config_h_filename, sysconfig.get_config_var, sysconfig.get_config_vars, sysconfig.get_makefile_filename
Ref: docs.python.org — sysconfig.get_path
Tags: #public #python3 #stdlib #sysconfig


Import

import sysconfig
from sysconfig import get_path

Signature & Overview

sysconfig.get_path(name, scheme='osx_framework_library', vars=None, expand=True)

Return a path corresponding to the scheme.

Usage

import sysconfig

purelib = sysconfig.get_path('purelib')
assert isinstance(purelib, str) and len(purelib) > 0

Gotchas

REPL Inspect

from sysconfig import get_path
help(get_path)

Linked from

Related notes