Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

about: use shortlicense from hgtk if COPYING.txt is not found

Changeset 9d4bd62db78b

Parent a647085f8d7e

by Steve Borho

Changes to one file · Browse files at 9d4bd62db78b Showing diff from parent a647085f8d7e Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​about.py Stacked
 
68
69
70
71
 
 
 
 
 
 
 
72
73
74
75
76
 
68
69
70
 
71
72
73
74
75
76
77
78
 
79
80
81
@@ -68,9 +68,14 @@
  thg_logo = os.path.normpath(shlib.get_tortoise_icon('thg_logo_92x50.png'))   thg_icon = os.path.normpath(shlib.get_tortoise_icon('thg_logo.ico'))   prog_root = os.path.dirname(os.path.dirname(os.path.dirname(thg_icon))) - license_file = os.path.join(prog_root, "COPYING.txt") + try: + license_file = os.path.join(prog_root, "COPYING.txt") + self.set_license(file(license_file).read()) + except IOError: + import hgtk + license = hgtk.shortlicense.splitlines()[1:] + self.set_license('\n'.join(license))   - self.set_license(file(license_file).read())   self.set_comments("with " + lib_versions + "\n\n" + comment)   self.set_logo(gtk.gdk.pixbuf_new_from_file(thg_logo))   self.set_icon_from_file(thg_icon)