From 580f664ffb40ebaf28ae44cca549e6ae04e7a5b4 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Mon, 23 Sep 2024 23:48:12 +0200 Subject: [PATCH] Strip filename of __init__.py file when trying to construct the pyproject.toml path --- eessi/testsuite/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eessi/testsuite/__init__.py b/eessi/testsuite/__init__.py index 5b6d90cf..1c5f78a7 100644 --- a/eessi/testsuite/__init__.py +++ b/eessi/testsuite/__init__.py @@ -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