# Following the path read from a fz file to a fzp file

**URL:** <https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071>\
**Category:** developers\
**Created:** [October 3, 2022, 10:04am UTC](https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071 "2022-10-03T10:04:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiennaAratar](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/n/a3d4f5/32.png) [@NiennaAratar](https://forum.fritzing.org/u/NiennaAratar)\
**Post date:** [October 3, 2022, 10:04am UTC](https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071/1 "2022-10-03T10:04:08Z")

</div>

I am trying to write a program which reads fz-files for a university project.  
Recently I realized that the information in the fz-files might not be enough for my purposes (a very abstract description of the fritzing project (how parts are connected and such)).  
I need to know the family of a part, which is a property included in the parts fzp-file.  
Luckily, the path to the fzp file is an attribute of the instance tag in the fz file, so I thought I could just follow this path and read the fzp-file to get the family property.  
For some paths, this works, but there are also paths like this: “:/resources/parts/core/wire.fzp”, for which it fails.  
I am unsure how to best work with this. Has the colon a special meaning here that I am missing? There is a “resources” directory in the fritzing-app repo, which has the file I want to read, but does this also work if somebody does not have the repo but downloaded fritzing for example using apt? I can’t find a “resources” folder.

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [October 3, 2022, 2:55pm UTC](https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071/2 "2022-10-03T14:55:33Z")

</div>

You need to Fritzing source repo from github. The resources directory is in there (I expect the associated parts get loaded in to the parts directory.)

$ ls fritzing-app/resources/parts/core  
30.20PerfboardModuleID.fzp netlabel\_left.fzp  
30.20Stripboard2ModuleID.fzp newbreadboardlogoimage.fzp  
30.20StripboardModuleID.fzp newcopper0logoimage.fzp  
blocker.fzp newcopper1logoimage.fzp  
blocker0.fzp newlogoimage.fzp  
boardlogoimage.fzp newschematiclogoimage.fzp  
boardlogoimage\_one\_layer.fzp newsilkscreen0logoimage.fzp  
breadboardlogoimage.fzp note.fzp  
breadboardlogotext.fzp pad.fzp  
cmRuler.fzp pad0.fzp  
copper0logoimage.fzp power.fzp  
copper0logotext.fzp power\_label.fzp  
copper1logoimage.fzp rectangle\_pcb.fzp  
copper1logotext.fzp rectangle\_pcb\_two\_layers.fzp  
dcpower.fzp roundrect\_pcb.fzp  
ellipse\_pcb.fzp roundrect\_pcb\_two\_layers.fzp  
ellipse\_pcb\_two\_layers.fzp schematic\_frame.fzp  
ground.fzp schematiclogoimage.fzp  
groundplane.fzp schematiclogotext.fzp  
hole.fzp silkscreen0logoimage.fzp  
jumper.fzp silkscreen0logotext.fzp  
logoimage.fzp via.fzp  
logotext.fzp wire.fzp  
netlabel.fzp

Peter

---

<div class="post-metadata">

**Author:** ![NiennaAratar](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/n/a3d4f5/32.png) [@NiennaAratar](https://forum.fritzing.org/u/NiennaAratar)\
**Post date:** [October 4, 2022, 7:46am UTC](https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071/3 "2022-10-04T07:46:32Z")

</div>

Thank you.  
Do you maybe know why there are some references that give a absolute path I just need to follow and references into the resources. Why not give references to the parts directory in both cases?

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [October 4, 2022, 2:25pm UTC](https://forum.fritzing.org/t/following-the-path-read-from-a-fz-file-to-a-fzp-file/17071/4 "2022-10-04T14:25:20Z")

</div>

> [@NiennaAratar](#):
>
> Do you maybe know why there are some references that give a absolute path I just need to follow and references into the resources. Why not give references to the parts directory in both cases?

In a word, no 🙂 . That was a decision by the developers long before I came to Fritzing.

Peter
