mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-28 05:32:54 +08:00
Remove src/rules.json path from library data loading
- Update load_library_data to remove the src/rules.json path from possible rules.json locations - Simplify rules.json path resolution to focus on package root and current directory - Align with previous changes in rules.json handling and copying
This commit is contained in:
@@ -509,7 +509,6 @@ def load_library_data(rules_path: Optional[str] = None) -> Dict[str, Any]:
|
||||
else:
|
||||
# Search for rules.json in priority order
|
||||
possible_paths = [
|
||||
Path(__file__).parent / "rules.json", # src/rules.json
|
||||
Path(__file__).parent.parent / "rules.json", # package root rules.json
|
||||
Path.cwd() / "rules.json" # current directory rules.json
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user