version.py
changeset 1742 92932cd370a4
parent 1741 dd94b9a68c61
child 1744 69dfdb26f600
equal deleted inserted replaced
1741:dd94b9a68c61 1742:92932cd370a4
    40                      "https://lists.sourceforge.net/lists/listinfo/beremiz-devel")
    40                      "https://lists.sourceforge.net/lists/listinfo/beremiz-devel")
    41 
    41 
    42 
    42 
    43 def GetAppRevision():
    43 def GetAppRevision():
    44     rev = None
    44     rev = None
    45     app_dir=paths.AbsDir(__file__)
    45     app_dir = paths.AbsDir(__file__)
    46     try:
    46     try:
    47         pipe = subprocess.Popen(
    47         pipe = subprocess.Popen(
    48             ["hg", "id", "-i"],
    48             ["hg", "id", "-i"],
    49             stdout = subprocess.PIPE,
    49             stdout = subprocess.PIPE,
    50             cwd = app_dir
    50             cwd = app_dir
   101     '\n'
   101     '\n'
   102     '\n'
   102     '\n'
   103     '')
   103     '')
   104 
   104 
   105     # read license file
   105     # read license file
   106     path=paths.AbsDir(__file__)
   106     path = paths.AbsDir(__file__)
   107     license_path = os.path.join(path, "COPYING")
   107     license_path = os.path.join(path, "COPYING")
   108     license=''
   108     license = ''
   109     if os.path.exists(license_path):
   109     if os.path.exists(license_path):
   110         with open(license_path) as f:
   110         with open(license_path) as f:
   111             info.License += f.read()
   111             info.License += f.read()
   112 
   112 
   113     info.Icon = wx.Icon(os.path.join(path, "images", "about_brz_logo.png"), wx.BITMAP_TYPE_PNG)
   113     info.Icon = wx.Icon(os.path.join(path, "images", "about_brz_logo.png"), wx.BITMAP_TYPE_PNG)