Skip to content

Commit

Permalink
Merge pull request #1258 from bhilbert4/find-pyproject-toml
Browse files Browse the repository at this point in the history
Fix path to pyproject.toml
  • Loading branch information
BradleySappington committed Apr 26, 2023
2 parents 99e0ca7 + ea9846e commit 147369e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jwql/utils/logging_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ def wrapped(*args, **kwargs):
logging.info('Running as PID {}'.format(os.getpid()))

# Read in setup.py file to build list of required modules
with open("pyproject.toml", "rb") as f:
toml_file = os.path.join(os.path.dirname(get_config()['setup_file']), 'pyproject.toml')
with open(toml_file, "rb") as f:
data = tomllib.load(f)

required_modules = data['project']['dependencies']
Expand Down

0 comments on commit 147369e

Please sign in to comment.