Skip to content

Commit 846871d

Browse files
authored
Add current year to copyright information
1 parent cd708ee commit 846871d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

source/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
from datetime import date
15+
import os
1516
from os.path import join
1617
import subprocess
18+
import sys
1719

1820
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
1921
# https://docs.readthedocs.io/en/latest/faq.html?highlight=environ#how-do-i-change-behavior-for-read-the-docs
@@ -55,7 +57,7 @@
5557

5658
# General information about the project.
5759
project = "Python GTK+ 3 Tutorial"
58-
copyright = "2011, The PyGObject Community"
60+
copyright = "2011-%s, The PyGObject Community" % date.today().year
5961

6062
locale_dirs = ["../translations/locale"]
6163

0 commit comments

Comments
 (0)