code: def _conf_packages(args):
      
      from acorn.config import config_dir
      from os import path
      from acorn.base import testmode
      target = config_dir(True)
      alternate = path.join(path.abspath(path.expanduser("~")), ".acorn")
      if not testmode and target != alternate:# pragma: no cover
          msg.err("Could not configure custom ~/.acorn directory.")
          exit(0)
  
      from acorn.utility import reporoot
      from glob import glob
      from os import chdir, getcwd
      from shutil import copy
      current = getcwd()
      source = path.join(reporoot, "acorn", "config")
      chdir(source)
      count = 0
  
      #For the unit testing, we don't clobber the local directory, so the copies
      #are disabled.
      for json in glob("*.json"):
          if not testmode:# pragma: no cover
              copy(json, target)
          count += 1
      for cfg in glob("*.cfg"):
          if not testmode:# pragma: no cover
              copy(cfg, target)
          count += 1
  
      #Switch the directory back to what it was.
      chdir(current)        
      msg.okay("Copied {0:d} package files to {1}.".format(count, target))
docs: Runs custom configuration steps for the packages that ship with support
      in acorn.