Skip to content

Commit

Permalink
Fix path in coveragerc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
langmm committed Feb 5, 2024
1 parent c08bf7e commit b85b8ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yggdrasil/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,11 +756,11 @@ def create_coveragerc(installed_languages, filename=None,
if config_file.endswith('.toml'):
try:
import tomllib
with open("pyproject.toml", "rb") as f:
with open(config_file, "rb") as f:
data = tomllib.load(f)
except ImportError:
import toml as toml
with open("pyproject.toml", "r") as f:
with open(config_file, "r") as f:
data = toml.load(f)
for k, v in data.get('tool', {}).get('coverage', {}).items():
config_file_opts.setdefault(k, {})
Expand Down

0 comments on commit b85b8ea

Please sign in to comment.