Loading Multiple HAL Files from one INI entry

More
4 years 1 month ago #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

Please Log in to join the conversation.

More
4 years 1 month ago #252590 by JT
And I think I found a clue in an example file that used the line
Code:
source somename.hal

JT

Please Log in to join the conversation.

More
4 years 1 month ago #252592 by JT
And to confirm having this in the ini
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.

More
4 years 1 month ago #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

Please Log in to join the conversation.

More
4 years 4 weeks ago #253215 by cmorley
it seems you can get configparser to read multiple entries:
stackoverflow.com/questions/15848674/how...ys/15848928#15848928

Please Log in to join the conversation.

Time to create page: 0.966 seconds
Powered by Kunena Forum