From 30d5f5b65f2487d51754355c06fa64a45f4537b3 Mon Sep 17 00:00:00 2001 From: Ruined1 Date: Tue, 29 Jan 2019 16:40:49 -0500 Subject: Programmatically set copyright year About dialog will now show starting year - current year automatically, so it doesn't need to be updated manually. --- dwt_about.py | 9 +++++---- 1 file 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 . # 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 .""" + along with this program. If not, see .""".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") -- cgit v1.2.3