This is a development version (9.18.0.dev) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython 9.18.0.dev / IPython / core / shellapp / InteractiveShellApp / init_path

function

IPython.core.shellapp:InteractiveShellApp.init_path

source: /IPython/core/shellapp.py:248

Signature

def init_path(self)

Summary

Add current working directory, '', to sys.path

Extended Summary

Unless disabled by ignore_cwd config or sys.flags.safe_path.

Unlike Python's default, we insert before the first site-packages or dist-packages directory, so that it is after the standard library.

Aliases

  • IPython.core.shellapp.InteractiveShellApp.init_path