8 from datetime 
import datetime
 
    9 from subprocess 
import check_output
 
   15     Helper class for accessing the information about the environment. 
   20         Get the variables from the environment variables. 
   40         Get the cached revision number from SVN or get it from SVN directly. 
   49         A nice representation. 
   53         result += 
"externals option: " + self.
externals_optionexternals_option + 
"\n" 
   54         result += 
"option: " + self.
optionoption + 
"\n" 
   55         result += 
"architecture: " + self.
architecturearchitecture + 
"\n" 
   56         result += 
"release: " + self.
releaserelease + 
"\n" 
   57         result += 
"release folder: " + self.
release_folderrelease_folder + 
"\n" 
   58         result += 
"revision number: " + self.
revision_numberrevision_number + 
"\n" 
   59         result += 
"date: " + datetime.now().strftime(
"%Y-%m-%d") + 
"\n" 
   70         Try to download the current revision number from SVN. 
   73             return check_output([
"git", 
"log", 
"-1", 
"--format='%H'"], cwd=self.
release_folderrelease_folder).decode()