Skip to content

Commit 5a18eb5

Browse files
committed
[info.py] Read information from info.json file
1 parent a6a0739 commit 5a18eb5

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

odml/info.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
VERSION = '1.3.3'
2-
FORMAT_VERSION = '1'
3-
AUTHOR = 'Hagen Fritsch, Christian Kellner, Jan Grewe, ' \
4-
'Achilleas Koutsou, Michael Sonntag, Lyuba Zehl'
5-
COPYRIGHT = '(c) 2011-2017, German Neuroinformatics Node'
6-
CONTACT = '[email protected]'
7-
HOMEPAGE = 'https://github.com/G-Node/python-odml'
8-
CLASSIFIERS = [
9-
'Programming Language :: Python :: 2',
10-
'Programming Language :: Python :: 3',
11-
'License :: OSI Approved :: BSD License',
12-
'Development Status :: 5 - Production/Stable',
13-
'Topic :: Scientific/Engineering',
14-
'Intended Audience :: Science/Research'
15-
]
1+
import os
2+
import json
3+
4+
here = os.path.dirname(__file__)
5+
6+
with open(os.path.join(here, "info.json")) as infofile:
7+
infodict = json.load(infofile)
8+
9+
VERSION = infodict["VERSION"]
10+
FORMAT_VERSION = infodict["FORMAT_VERSION"]
11+
AUTHOR = infodict["AUTHOR"]
12+
COPYRIGHT = infodict["COPYRIGHT"]
13+
CONTACT = infodict["CONTACT"]
14+
HOMEPAGE = infodict["HOMEPAGE"]
15+
CLASSIFIERS = infodict["CLASSIFIERS"]

0 commit comments

Comments
 (0)