Skip to content

Commit

Permalink
fix missing imports in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed Jul 4, 2020
1 parent 91b3156 commit a8766a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
#- Dumping the extracted data in JSON format.
#"""


import sys
from setuptools import setup
from os import path


def version():
base_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
import re
base_dir = path.abspath(path.dirname(sys.argv[0]))
_VERSION = None
with open(os.path.join(base_dir, 'ggsipu_result', '__init__.py')) as f:
with open(path.join(base_dir, 'ggsipu_result', '__init__.py')) as f:
_VERSION = re.search(
r'__version__\s*=\s*"([^"]+)"', f.read()).group(1)
assert _VERSION
Expand Down

0 comments on commit a8766a3

Please sign in to comment.