File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ classifiers = [
8585]
8686
8787[project .urls ]
88- Changelog = " https://github.com/KudoAI/ai-personas/releases/tag/python-v1 .4.0"
88+ Changelog = " https://github.com/KudoAI/ai-personas/releases/tag/python-1 .4.0"
8989Documentation = " https://github.com/KudoAI/ai-personas/tree/main/python/#readme"
9090Funding = " https://github.com/sponsors/KudoAI"
9191Homepage = " https://github.com/KudoAI/ai-personas/#readme"
@@ -96,6 +96,7 @@ Repository = "https://github.com/KudoAI/ai-personas"
9696
9797[project .optional-dependencies ]
9898dev = [
99+ " find-project-root>=1.0.4,<2" ,
99100 " nox>=2026.4.10" ,
100101 " pre-commit>=4.5.1,<5" ,
101102 " tomli>=2.4.1,<3" ,
Original file line number Diff line number Diff line change 22from pathlib import Path
33from types import SimpleNamespace as sn
44
5+ import find_project_root
6+
57from .lib import data , log , toml
68
7- paths = sn (root = Path (__file__ ). parent . parent )
9+ paths = sn (root = Path (find_project_root ())) # type: ignore
810paths .pyproject = paths .root / 'pyproject.toml'
911paths .readme = paths .root / 'docs/README.md'
1012paths .util_msgs = paths .root / 'utils/data/messages.json'
Original file line number Diff line number Diff line change 22import shutil , sys
33from types import SimpleNamespace as sn
44
5+ import find_project_root
6+
57from .lib import data , log
68
79def main ():
8- msgs_path = Path (__file__ ). parent / 'data/messages.json'
10+ msgs_path = Path (find_project_root ()) / 'data/messages.json' # type: ignore
911 msgs = sn (** { key :val ['message' ] for key ,val in data .json .read (msgs_path )['clean' ].items () })
1012 targets = ['*.pyc' ]
1113 if '--py2' not in sys .argv :
You can’t perform that action at this time.
0 commit comments