class_docstr: Restrict operations to a single subdirectory - pseudo-chroot
class_docstr_tok: ["Restrict","operations","to","a","single","subdirectory","-","pseudo-chroot"]
code: def __init__(self, sandbox, exceptions=_EXCEPTIONS):
      self._sandbox = os.path.normcase(os.path.realpath(sandbox))
      self._prefix = os.path.join(self._sandbox, "")
      self._exceptions = [
          os.path.normcase(os.path.realpath(path))
          for path in exceptions
      ]
      AbstractSandbox.__init__(self)
  
imports: import os
  import sys
  import tempfile
  import operator
  import functools
  import itertools
  import re
  import contextlib
  import pickle
  import textwrap
  import builtins
  import pkg_resources
  from distutils.errors import DistutilsError
  from pkg_resources import working_set
label_desc: Use image node_id 1 to create a new DirectorySandbox object from inherited base classes: AbstractSandbox with example: obj = DirectorySandbox(sandbox, exceptions)