Fix setup.py
This commit is contained in:
parent
56910e6e9c
commit
507020449f
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -45,7 +45,7 @@ Authors:
|
||||||
|
|
||||||
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
|
VERSIONFILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "scour", "__init__.py")
|
||||||
verstrline = open(VERSIONFILE).read()
|
verstrline = open(VERSIONFILE).read()
|
||||||
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]"
|
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
|
||||||
mo = re.search(VSRE, verstrline, re.M)
|
mo = re.search(VSRE, verstrline, re.M)
|
||||||
if mo:
|
if mo:
|
||||||
verstr = mo.group(1)
|
verstr = mo.group(1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue