Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find schematics in sub-folders #33

Closed
leardilap opened this issue May 3, 2020 · 2 comments
Closed

Find schematics in sub-folders #33

leardilap opened this issue May 3, 2020 · 2 comments

Comments

@leardilap
Copy link

I have most of my kicad project organized in a similar structure where I have a folder where all schematic sheets are, with the exception of the top level:

├── images
├── mech
├── pdf
├── sch
│   ├── sub-sheet1.sch
│   ├── sub-sheet2.sch
├── project-cache.lib
├── project.kicad_pcb
├──project.pro
├──project.sch

whent I run plotgitsch -i firefox only differences in project.sch are shown.
in need to cd sch/ and run plotgitsch -i firefox -l ../project-cache.lib

it is a minor annoyance, but I think it could be fix by finding all files ending in .sch including a search in folders.

I tried looking in to the code but I'm not familiar which language is this tool written on.
I guess it would be in line 48 of plotkicadsch/src/kicadDiff.ml

let find_schematics () = F.list_files (ends_with ".sch")

Many thanks for this tool,
Luis

@jnavila
Copy link
Owner

jnavila commented May 3, 2020

I did not know that you could organize your sch files in subdirs of the main sch and lib files. In such case, there is indeed a bug.

Thanks for reporting.

@leardilap
Copy link
Author

in Kicad when you create a sub-sheet.sch you need to place in the "file name" field: sch/sub-sheet.sch
so it knows it is located under the folder sch/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants