Post an enhancement request on the dev mailing list.  There are lots of
developers out there that would like to contribute to linuxcnc but don't
because a lot of the required work requires in depth knowledge - ini file
enhancements should be a simple standalone task.  Ini file access should be
through the inifile library, so it should only need to be changed in the
C/C++ code in one place.

But first, it needs to be spec'ed...

I suggest...

* An new command in the ini file...

[include filename]

It is a bit of a fudge reusing a section.  Anything after the "include "
will be treated as a single file name, so for those that must, can put
spaces in the path.

* Any section tag eg [section] that is duplicated across multiple .ini files
will have their list of values be combined,

Eg...

one.ini
[Section1]
Tag1=a
Tag2=b

[Section2]
Tag1=a

[include two.ini]
------------------
two.ini
[Section1]
Tag1=c
Tag3=d

Will produce the equivalent .ini file...

[Section1]
Tag1=a
Tag2=b
Tag1=c
Tag3=d

[Section2]
Tag1=a




> -----Original Message-----
> From: Marius Liebenberg [mailto:mar...@mastercut.co.za]
> Sent: Wednesday, 12 February 2014 6:52 AM
> To: Enhanced Machine Controller (EMC)
> Subject: [Emc-users] Multiple INI files
> 
> I dont know if this has been asked before but hear me out please.
> I wondered why we could not have a number of INI files with an #INCLUDE
> type of structure. I would very much like to segment my configuration into
> usable sections like all the AXIS tuning parameters in one file for
instance.
> And then place all the display related stuff into another.
> 
> --
> 
> Regards /Groete
> 
> Marius D. Liebenberg
> +27 82 698 3251
> +27 12 743 6064
> 
> 
>
----------------------------------------------------------------------------
--
> Android apps run on BlackBerry 10
> Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
> Now with support for Jelly Bean, Bluetooth, Mapview and more.
> Get your Android app in front of a whole new audience.  Start now.
> http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.cl
> ktrk
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to