Loading Multiple HAL Files from one INI entry

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
22 Sep 2022 21:19 - 22 Sep 2022 21:19 #252589 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
Last edit: 22 Sep 2022 21:19 by JT.

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
22 Sep 2022 21:37 #252590 by JT
And I think I found a clue in an example file that used the line
source somename.hal

JT
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

  • JT
  • JT's Avatar Topic Author
  • Away
  • Administrator
  • Administrator
More
22 Sep 2022 22:58 #252592 by JT
And to confirm having this in the ini
[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.

More
23 Sep 2022 01:02 #252593 by cmorley
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
The following user(s) said Thank You: arvidb, tommylight

Please Log in or Create an account to join the conversation.

More
02 Oct 2022 03:42 #253215 by cmorley
it seems you can get configparser to read multiple entries:
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
Powered by Kunena Forum