|
39 | 39 | computer programs for studying nanostructure in crystals, |
40 | 40 | J. Phys.: Condens. Matter 19, 335219 (2007).''' |
41 | 41 |
|
| 42 | +_copyright = "(c) 2005-{year},".format(year= __date__[:4]) |
| 43 | + |
42 | 44 | _homepage = "http://www.diffpy.org" |
43 | 45 |
|
44 | 46 | # authors list is shuffled randomly every time |
@@ -77,7 +79,7 @@ def __init__(self, *args, **kwds): |
77 | 79 | self.label_version = wx.StaticText(self, wx.ID_ANY, "") |
78 | 80 | self.label_build = wx.StaticText(self, wx.ID_ANY, "Build:") |
79 | 81 | self.label_svnrevision = wx.StaticText(self, wx.ID_ANY, "") |
80 | | - self.label_copyright = wx.StaticText(self, wx.ID_ANY, "(c) 2005-YYYY,") |
| 82 | + self.label_copyright = wx.StaticText(self, wx.ID_ANY, "") |
81 | 83 | self.label_author = wx.StaticText(self, wx.ID_ANY, "author") |
82 | 84 | self.hyperlink = wx.lib.agw.hyperlink.HyperLinkCtrl(self, wx.ID_ANY, _homepage, URL=_homepage) |
83 | 85 | self.hyperlink_license = wx.lib.agw.hyperlink.HyperLinkCtrl(self, wx.ID_ANY, _license, URL=_license) |
@@ -105,12 +107,9 @@ def __init__(self, *args, **kwds): |
105 | 107 | random.shuffle(_authors) |
106 | 108 | strLabel = ", ".join(_authors) |
107 | 109 | self.label_author.SetLabel(strLabel) |
108 | | - # setup acknowledgement text |
| 110 | + # setup acknowledgement and copyright text labels |
109 | 111 | self.label_acknowledgement.SetLabel(_acknowledgement) |
110 | | - # set copyright year to that of the current release |
111 | | - syear = __date__[:4] |
112 | | - scprt = self.label_copyright.GetLabel().replace('YYYY', syear) |
113 | | - self.label_copyright.SetLabel(scprt) |
| 112 | + self.label_copyright.SetLabel(_copyright) |
114 | 113 | # display version and svn revison numbers |
115 | 114 | verwords = __version__.split('.post', 1) |
116 | 115 | version = verwords[0] |
|
0 commit comments