Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 002f404

Browse files
committed
Merge pull request #10 from rshipp/codacy-patch-4
Import version instead of reading it
2 parents 7b47b52 + ec8be31 commit 002f404

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

setup.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515

1616
# Get the correct version from file
1717
try:
18-
exec(open('version.py').read())
19-
except:
18+
import version
19+
__version__ = version.__version__
20+
except ImportError:
2021
pass
2122

2223
setup(

0 commit comments

Comments
 (0)