- Posts: 1110
- Thank you received: 7
Loading Multiple HAL Files from one INI entry
4 years 1 month ago #252589
by JT
Loading Multiple HAL Files from one INI entry was created by JT
I'm trying to use Python3's configparser in mesact to allow custom ini entries to not be written over but the configparser does not allow duplicate keys so only one HALFILE key is left.
Is there a way around this somehow to load several hal files from one ini entry?
This would really improve the Mesa Configuration Tools flexibility and make it much more user friendly.
JT
Is there a way around this somehow to load several hal files from one ini entry?
This would really improve the Mesa Configuration Tools flexibility and make it much more user friendly.
JT
Please Log in to join the conversation.
4 years 1 month ago #252590
by JT
Replied by JT on topic Loading Multiple HAL Files from one INI entry
And I think I found a clue in an example file that used the line
JT
Code:
source somename.hal
JT
Please Log in to join the conversation.
4 years 1 month ago #252592
by JT
Replied by JT on topic Loading Multiple HAL Files from one INI entry
And to confirm having this in the ini
and in my filelist.hal
works as expected.
JT
Code:
[HAL]
HALFILE = filelist.hal
and in my filelist.hal
Code:
source main.hal
source io.hal
source custom.hal
works as expected.
JT
Please Log in to join the conversation.
4 years 1 month ago #252593
by cmorley
Replied by cmorley on topic Loading Multiple HAL Files from one INI entry
Might I humbly suggest that supporting having multiple load line in the INI would be worth the effort.
AXIS,Touchy,GMpccapy, Gscreen and Qtvcp support multiple postgui.hal files.
It makes things much more clear.
linuxcnc.org/docs/devel/html/gui/axis.ht...vanced_configuration
linuxcnc.org/docs/devel/html/gui/gmoccapy.html#_hal_pins
AXIS,Touchy,GMpccapy, Gscreen and Qtvcp support multiple postgui.hal files.
It makes things much more clear.
linuxcnc.org/docs/devel/html/gui/axis.ht...vanced_configuration
linuxcnc.org/docs/devel/html/gui/gmoccapy.html#_hal_pins
Please Log in to join the conversation.
4 years 4 weeks ago #253215
by cmorley
Replied by cmorley on topic Loading Multiple HAL Files from one INI entry
it seems you can get configparser to read multiple entries:
stackoverflow.com/questions/15848674/how...ys/15848928#15848928
stackoverflow.com/questions/15848674/how...ys/15848928#15848928
Please Log in to join the conversation.
Time to create page: 0.966 seconds
