8from datetime
import datetime
9from 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.
54 result +=
"option: " + self.
option +
"\n"
56 result +=
"release: " + self.
release +
"\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_folder).decode()