Update setup.py

This commit is contained in:
Dev Aggarwal
2018-12-13 21:00:57 +05:30
committed by GitHub
parent 1f744ec878
commit 38212d4b91
+2 -1
View File
@@ -46,9 +46,10 @@ except FileNotFoundError:
long_description = DESCRIPTION
# Load the package's __version__.py module as a dictionary.
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
about = {}
if not VERSION:
with open(os.path.join(here, NAME, '__version__.py')) as f:
with open(os.path.join(here, project_slug, '__version__.py')) as f:
exec(f.read(), about)
else:
about['__version__'] = VERSION