We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7a13ce commit 55fe763Copy full SHA for 55fe763
setup.py
@@ -1,11 +1,11 @@
1
# from importlib import import_module
2
-from pathlib import Path
+from os import path
3
import re
4
from setuptools import find_packages, setup
5
6
7
def get_version():
8
- text = Path(__file__).parent.joinpath("markdown_it", "__init__.py").read_text()
+ text = open(path.join(path.dirname(__file__), "markdown_it", "__init__.py")).read()
9
match = re.compile(r"^__version__\s*\=\s*[\"\']([^\s\'\"]+)", re.M).search(text)
10
return match.group(1)
11
0 commit comments