Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/10se1ucgo/DisableWinTracking.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuined1 <ruined1@gmail.com>2019-01-30 00:40:49 +0300
committerRuined1 <ruined1@gmail.com>2019-01-30 00:40:49 +0300
commit30d5f5b65f2487d51754355c06fa64a45f4537b3 (patch)
tree00cf3be7515ee508bdd724d3b9f72c4afa041651
parent64ada018771a301e9d9d4eb0dc9f3d6890e74feb (diff)
Programmatically set copyright year
About dialog will now show starting year - current year automatically, so it doesn't need to be updated manually.
-rw-r--r--dwt_about.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/dwt_about.py b/dwt_about.py
index 994e5ae..afff940 100644
--- a/dwt_about.py
+++ b/dwt_about.py
@@ -16,6 +16,7 @@
# along with DisableWinTracking. If not, see <http://www.gnu.org/licenses/>.
# dwt.py will become cluttered enough :^)
+import datetime
import cgi
import json
import urllib2
@@ -27,11 +28,11 @@ import wx.adv
import wx.lib.scrolledpanel as sp
__version__ = "3.2.2"
-
+year = datetime.date.today().year
def about_dialog(parent):
license_text = """
- Copyright (C) 10se1ucgo 2015-2016
+ Copyright (C) 10se1ucgo 2015-{year}
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -44,12 +45,12 @@ def about_dialog(parent):
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>."""
+ along with this program. If not, see <http://www.gnu.org/licenses/>.""".format(year=year)
about_info = wx.adv.AboutDialogInfo()
about_info.SetName("Disable Windows 10 Tracking")
about_info.SetVersion("v{v}".format(v=__version__))
- about_info.SetCopyright("Copyright (C) 10se1ucgo 2015-2016")
+ about_info.SetCopyright("Copyright (C) 10se1ucgo 2015-{year}".format(year=year))
about_info.SetDescription("A tool to disable tracking in Windows 10")
about_info.SetWebSite("https://github.com/10se1ucgo/DisableWinTracking", "GitHub repository")
about_info.AddDeveloper("10se1ucgo")