Skip to content

Commit

Permalink
Strip filename of __init__.py file when trying to construct the pypro…
Browse files Browse the repository at this point in the history
…ject.toml path
  • Loading branch information
Caspar van Leeuwen committed Sep 23, 2024
1 parent 07943e3 commit 580f664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eessi/testsuite/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# but SHOULD exist when this is run from a downloaded tarball from git)

# Pyproject.toml should be two levels up from this file
pyproject_toml = "%s/../../pyproject.toml" % __file__
pyproject_toml = "%s/../../pyproject.toml" % os.path.dirname(__file__)

# Variables to track if we're in the right section and to store the fallback_version
in_setuptools_scm_section = False
Expand Down

0 comments on commit 580f664

Please sign in to comment.