Skip to content

Commit

Permalink
* fix config autoload (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-murphy authored Apr 6, 2024
1 parent 3aa4b85 commit 5f5176a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions py_ballisticcalc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def find_pybc_toml(start_dir=os.getcwd()):
find_pybc_toml(os.path.dirname(__file__))

logger.info(f"Found {os.path.basename(filepath)} at {os.path.dirname(filepath)}")
print(f"Found {os.path.basename(filepath)} at {os.path.dirname(filepath)}")

with open(filepath, "rb") as fp:
_config = tomllib.load(fp)
Expand Down Expand Up @@ -110,6 +111,8 @@ def _basic_config(filename=None,

basicConfig = _basic_config

basicConfig()

__all__ = [
'Calculator',
'basicConfig',
Expand Down
2 changes: 1 addition & 1 deletion py_ballisticcalc_exts/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "py_ballisticcalc.exts"
version = "2.0.0b4"
version = "2.0.0b5"

authors = [
{ name="o-murphy", email="thehelixpg@gmail.com" },
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "py_ballisticcalc"
version = "2.0.0b4"
version = "2.0.0b5"

authors = [
{ name="o-murphy", email="thehelixpg@gmail.com" },
Expand Down Expand Up @@ -54,6 +54,6 @@ exclude = ["py_ballisticcalc_exts*"]


[project.optional-dependencies]
exts = ['py_ballisticcalc.exts==2.0.0b4']
exts = ['py_ballisticcalc.exts==2.0.0b5']
lint = ['pylint', 'flake8']
charts = ['matplotlib', 'pandas']

0 comments on commit 5f5176a

Please sign in to comment.