Update setup.py
This commit is contained in:
parent
77509e6da2
commit
6fbd50ef21
2
setup.py
2
setup.py
|
@ -22,7 +22,7 @@ dirname = os.path.abspath(os.path.dirname(__file__))
|
||||||
with codecs.open(
|
with codecs.open(
|
||||||
os.path.join(dirname, "undetected_chromedriver", "__init__.py"),
|
os.path.join(dirname, "undetected_chromedriver", "__init__.py"),
|
||||||
mode="r",
|
mode="r",
|
||||||
encoding="latin1",
|
encoding="utf-8",
|
||||||
) as fp:
|
) as fp:
|
||||||
try:
|
try:
|
||||||
version = re.findall(r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M)[0]
|
version = re.findall(r"^__version__ = ['\"]([^'\"]*)['\"]", fp.read(), re.M)[0]
|
||||||
|
|
Loading…
Reference in New Issue