parameters: (self, target_dir, append_to_search_path, prepend_to_search_path, make_package)
docstring: Set up a target directory.
  
          Args:
            target_dir: The path to the target directory to set up.
            append_to_search_path: A boolean value of whether to append the
                                   target directory to the sys.path search path.
            prepend_to_search_path: A boolean value of whether to prepend the
                                   target directory to the sys.path search path.
            make_package: A boolean value of whether to make the target
                          directory a package.  This adds an __init__.py file
                          to the target directory -- allowing packages and
                          modules within the target directory to be imported
                          explicitly using dotted module names.
docstring_summary: Set up a target directory.
docstring_tokens: Set up a target directory .
function: def _set_up_target_dir(self, target_dir, append_to_search_path, prepend_to_search_path, make_package):
          """Set up a target directory.
  
          Args:
            target_dir: The path to the target directory to set up.
            append_to_search_path: A boolean value of whether to append the
                                   target directory to the sys.path search path.
            prepend_to_search_path: A boolean value of whether to prepend the
                                   target directory to the sys.path search path.
            make_package: A boolean value of whether to make the target
                          directory a package.  This adds an __init__.py file
                          to the target directory -- allowing packages and
                          modules within the target directory to be imported
                          explicitly using dotted module names.
  
          """
          if not os.path.exists(target_dir):
              os.makedirs(target_dir)
  
          if append_to_search_path:
              sys.path.append(target_dir)
  
          if prepend_to_search_path:
              sys.path.insert(0, target_dir)
  
          if make_package:
              self._make_package(target_dir)
function_tokens: def _set_up_target_dir ( self , target_dir , append_to_search_path , prepend_to_search_path , make_package ) : if not os . path . exists ( target_dir ) : os . makedirs ( target_dir ) if append_to_search_path : sys . path . append ( target_dir ) if prepend_to_search_path : sys . path . insert ( 0 , target_dir ) if make_package : self . _make_package ( target_dir )