Declare public API in __init__.py and add __main__.py

This commit is contained in:
Eduard Braun 2016-09-25 17:33:15 +02:00
parent d9b369864d
commit f3c25fd27a
5 changed files with 21 additions and 2 deletions

View file

@ -33,7 +33,7 @@ Authors:
- Tobias Oberstein (maintainer)
"""
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "version.py")
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)