From 38212d4b91bd4c6c5ce1cc9b9fca3493a1774bcd Mon Sep 17 00:00:00 2001 From: Dev Aggarwal Date: Thu, 13 Dec 2018 21:00:57 +0530 Subject: [PATCH] Update setup.py --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6825e57..0412138 100644 --- a/setup.py +++ b/setup.py @@ -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