diff --git a/setup.py b/setup.py index 6825e57..760c429 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,8 @@ except FileNotFoundError: # Load the package's __version__.py module as a dictionary. about = {} if not VERSION: - with open(os.path.join(here, NAME, '__version__.py')) as f: + project_slug = NAME.lower().replace("-", "_").replace(" ", "_") + with open(os.path.join(here, project_slug, '__version__.py')) as f: exec(f.read(), about) else: about['__version__'] = VERSION