Category: Gmoccapy
I'll try to recap the previous posts. What I want to do can be done in multiple ways.
1)my first original plan.
Create new files in the linuxcnc/src/emc/usr_intf/pncconf folder and then copy them to the new LCNC configuration using pncconf.
I could do this. It is not problem for me.
2)However, @Aciera came up with a better idea.
He doesn't want to create new files in the linuxcnc/src/emc/usr_intf/pncconf folder.
He wants to use the original data from the configs/sim/gmoccapy folder.
The advantage is that there will be no unnecessary duplicate data in the source files.
The problem is that I don't know how to define this path cleanly: configs/sim/gmoccapy
This path is different for RIP installation and different for package installation.
I can define the path for the RIP installation. It is not problem for me.
For package installation I could use the path:
/usr/share/doc/linuxcnc/examples/sample-configs/sim/gmoccapy/
I don't know if this is a clean solution.
I think a clean solution would be to use this variable:
github.com/LinuxCNC/linuxcnc/blob/1c72d4...ipts/linuxcnc.in#L53
But I don't know how.