Skip to content

Commit 38212d4

Browse files
authored
Update setup.py
1 parent 1f744ec commit 38212d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@
4646
long_description = DESCRIPTION
4747

4848
# Load the package's __version__.py module as a dictionary.
49+
project_slug = NAME.lower().replace("-", "_").replace(" ", "_")
4950
about = {}
5051
if not VERSION:
51-
with open(os.path.join(here, NAME, '__version__.py')) as f:
52+
with open(os.path.join(here, project_slug, '__version__.py')) as f:
5253
exec(f.read(), about)
5354
else:
5455
about['__version__'] = VERSION

0 commit comments

Comments
 (0)