mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-08 18:32:21 +00:00
* merge branch develop with main * bump desktop version * fix the merge * sync Cargo.lock to desktop 2.0.0 * fix cli conftest.py --------- Co-authored-by: deeleeramone <>
21 lines
497 B
Python
21 lines
497 B
Python
"""OpenBB Cookiecutter Template."""
|
|
|
|
from importlib.metadata import PackageNotFoundError, version
|
|
from pathlib import Path
|
|
|
|
try:
|
|
__version__ = version("openbb-cookiecutter")
|
|
except PackageNotFoundError:
|
|
__version__ = "0.0.0"
|
|
|
|
|
|
def get_template_path() -> Path:
|
|
"""Return the path to the cookiecutter template directory.
|
|
|
|
Returns
|
|
-------
|
|
Path
|
|
The directory holding ``cookiecutter.json`` and the project template.
|
|
"""
|
|
return Path(__file__).parent / "template"
|