IPython Documentation

Table Of Contents

Previous topic

Module: utils.sysinfo

Next topic

Module: utils.tempdir

This Page

Note

This documentation is for a development version of IPython. There may be significant differences from the latest stable release.

Module: utils.syspathcontext

Context managers for adding things to sys.path temporarily.

Authors:

  • Brian Granger

2 Classes

class IPython.utils.syspathcontext.appended_to_syspath(dir)

Bases: object

A context for appending a directory to sys.path for a second.

__init__(dir)
class IPython.utils.syspathcontext.prepended_to_syspath(dir)

Bases: object

A context for prepending a directory to sys.path for a second.

__init__(dir)