Пример #1
0
 def setUp(self, directory=os.path.join(examples_directory, "empty")):
     "Figure out the directories and build the site."
     self.directory = directory
     # create a Site object
     self.site = Site(self.directory)
     # get the build directory from the site's configuration
     self.build_dir = os.path.join(self.site.source,
                                   self.site.config.build_dir)
     # delete the build directory, just in case there's something there.
     self.delete_build_dir()
     # and, finally, build the site
     self.site.build()