class_docstr: A context for prepending a directory to sys.path for a second.
class_docstr_tok: ["A","context","for","prepending","a","directory","to","sys.path","for","a","second","."]
code: def __enter__(self):
      if self.dir not in sys.path:
          sys.path.insert(0, self.dir)
          self.added = True
      else:
          self.added = False
  
file_path: catboost/contrib/python/ipython/py3/IPython/utils/syspathcontext.py
imports: import sys
  import warnings
label_desc: Use image node_id 2 for calling the prepended_to_syspath obj's underlying member method code with example usage: obj.__enter__() without return types