We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a24268 commit 444daefCopy full SHA for 444daef
src/specify_cli/presets.py
@@ -48,7 +48,15 @@ def _substitute_core_template(
48
if "{CORE_TEMPLATE}" not in body:
49
return body
50
51
- core_file = project_root / ".specify" / "templates" / "commands" / f"{short_name}.md"
+ from specify_cli import _locate_core_pack
52
+ core_pack = _locate_core_pack()
53
+ if core_pack is not None:
54
+ core_file = core_pack / "commands" / f"{short_name}.md"
55
+ else:
56
+ # Source / editable install: look relative to the package root
57
+ repo_root = Path(__file__).parent.parent.parent
58
+ core_file = repo_root / "templates" / "commands" / f"{short_name}.md"
59
+
60
if not core_file.exists():
61
62
0 commit comments