-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion.py
39 lines (33 loc) · 1.17 KB
/
version.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/python2
# vim: ts=4 : sts=4 : sw=4 : et :
import os.path
name = "galactiscan"
fancy_name = "Galactiscan"
number = "3.0"
string = "%s %s" % (name, number)
fancy_string = "%s %s" % (fancy_name, number)
description = "A tool for maintaining and querying a database of survey scans from Shores of Hazeron."
url = "https://github.com/pizzasgood/galactiscan"
copyright = "Copyright 2013-2015 Pizzasgood"
license_name = "GPL"
license_version = "3"
license_fancy_name = "GNU General Public License"
license_string = "%s Version %s" % (license_fancy_name, license_version)
license_url = "http://www.gnu.org/licenses/gpl.html"
license_filename = "LICENSE"
def getLicensePath():
"""Return the path to the license file."""
program_directory = os.path.dirname(__file__)
return "%s/%s" % (program_directory, license_filename)
def getLicenseBody():
"""Return the text of the license file."""
path = getLicensePath()
if os.path.isfile(path):
#read the license file
f = open(getLicensePath())
text = f.read()
f.close()
else:
#unable to find license file, so make do with what we have
text = license_string
return text