Thanks Jeff and Ken,
In the end I used:
iniFile = emc.ini(os.environ['INI_FILE_NAME'])
emc.nmlfile = os.path.join(os.path.dirname(os.environ['INI_FILE_NAME']),
iniFile.find("EMC", "NML_FILE"))
A bit ugly but it gets the job done.
the environment variable 'NMLFILE' does not seem to be available to the
manual toolchange script. Once I have proved the concept I will still
need to incorporate this into Axis to make it reliable. Currently it is
possible for Axis and my manual toolchange script to get out of sync.
Les
Jeff Epler wrote:
> When running from inside the emc script, the environment variable
> INI_FILE_NAME holds the inifile, and the environment variable NMLFILE
> holds the nmlfile.
>
> AXIS generally passes a "-ini" flag to subprograms that benefit from it,
> like debuglevel.
>
> Jeff
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
------------------------------------------------------------------------------
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users