class_docstr: A context for appending a directory to sys.path for a second.
class_docstr_tok: ["A","context","for","appending","a","directory","to","sys.path","for","a","second","."]
code: def __init__(self, dir):
      self.dir = cast_bytes_py2(dir, sys.getdefaultencoding())
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/syspathcontext.py
imports: import sys
  from IPython.utils.py3compat import cast_bytes_py2
label_desc: Use image node_id 1 to create a new appended_to_syspath object from inherited base classes: object with example: obj = appended_to_syspath(dir)