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 4cbd14e commit 7fcaa6bCopy full SHA for 7fcaa6b
dapi/__init__.py
@@ -90,7 +90,7 @@ def _get_version():
90
import tomli as tomllib # Use tomli and alias it as tomllib
91
92
try:
93
- pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
+ pyproject_path = Path(__file__).parent / "pyproject.toml"
94
with open(pyproject_path, "rb") as f: # tomllib expects bytes
95
data = tomllib.load(f)
96
return data["tool"]["poetry"]["version"]
0 commit comments