Skip to content

Commit 55fe763

Browse files
committed
Update setup.py
1 parent e7a13ce commit 55fe763

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# from importlib import import_module
2-
from pathlib import Path
2+
from os import path
33
import re
44
from setuptools import find_packages, setup
55

66

77
def get_version():
8-
text = Path(__file__).parent.joinpath("markdown_it", "__init__.py").read_text()
8+
text = open(path.join(path.dirname(__file__), "markdown_it", "__init__.py")).read()
99
match = re.compile(r"^__version__\s*\=\s*[\"\']([^\s\'\"]+)", re.M).search(text)
1010
return match.group(1)
1111

0 commit comments

Comments
 (0)