Loading Multiple HAL Files from one INI entry
22 Sep 2022 21:19 - 22 Sep 2022 21:19 #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
Last edit: 22 Sep 2022 21:19 by JT.
Please Log in or Create an account to join the conversation.
22 Sep 2022 21:37 #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
source somename.hal
JT
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
22 Sep 2022 22:58 #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
[HAL]
HALFILE = filelist.hal
and in my filelist.hal
source main.hal
source io.hal
source custom.hal
works as expected.
JT
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
23 Sep 2022 01:02 #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
The following user(s) said Thank You: arvidb, tommylight
Please Log in or Create an account to join the conversation.
02 Oct 2022 03:42 #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 or Create an account to join the conversation.
Time to create page: 0.117 seconds