code: def make_directories(self):
          
  
          # get the directories from the template
          directories = []
          try:
              directories = self.directories()
          except AttributeError:
              self.term.print_info(u"No directory in the template.")
  
          working_dir = os.getcwd()
          # iteratively create the directories
          for directory in directories:
              dir_name = working_dir + '/' + directory
              if not os.path.isdir(dir_name):
                  try:
                      os.makedirs(dir_name)
                  except OSError as error:
                      if error.errno != errno.EEXIST:
                          raise
              else:
                  self.term.print_error_and_exit(u"The directory {0} already exists."
                           .format(directory))
  
              self.term.print_info(u"Creating directory '{0}'"
                                   .format(self.term.text_in_color(directory, TERM_GREEN)))
docs: Create the directories of the template.