Skip to content

Commit

Permalink
Fix Pyproject.toml path
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jul 6, 2023
1 parent e315682 commit e00fd27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bidscoin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
try:
__version__ = version('bidscoin')
except Exception:
with open(Path(__file__).parent/'pyproject.toml', 'rb') as fid:
with open(Path(__file__).parents[1]/'pyproject.toml', 'rb') as fid:
__version__ = tomllib.load(fid)['project']['version']
2 changes: 1 addition & 1 deletion bidscoin/bcoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def version(check: bool=False) -> Union[str, Tuple]:
try:
localversion = libversion('bidscoin')
except Exception:
with open(Path(__file__).parent/'pyproject.toml', 'rb') as fid:
with open(Path(__file__).parents[1]/'pyproject.toml', 'rb') as fid:
localversion = tomllib.load(fid)['project']['version']

# Check pypi for the latest version number
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
author = 'Marcel Zwiers'

# The full version, including alpha/beta/rc tags from file
with open(Path(__file__).parent / 'pyproject.toml', 'rb') as fid:
with open(Path(__file__).parents[1]/'pyproject.toml', 'rb') as fid:
release = tomllib.load(fid)['project']['version']


Expand Down

0 comments on commit e00fd27

Please sign in to comment.