Embedding ngcgui in EMC 2.4.x

More
14 years 6 months ago - 14 years 6 months ago #19482 by ArcEye
Hi

In my ini file I used relative paths

I would advise, don't, unless you know what PWD is and where the routine searching is starting from, it is a short cut to madness.

When I wrote my ngcgui subs, I pretty soon came to the conclusion that the only thing that actually works, is using the directory pointed to by PROGRAM_PREFIX =

For that reason, all my subs are in their own sub-directories but sym-linked to ~/emc2/ngc in my case.

For the same reason I specify explicitly the paths eg
NGCGUI_SUBFILE = ~/emc2/ngc/pcd.ngc

This setup gives me zero problems, I never touch any files in ~/emc2/ngc and do any editing or code changes to the subs in their own named sub-directories, which ensures I am always sure exactly what it is I am editing.

regards
Last edit: 14 years 6 months ago by ArcEye.

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

More
14 years 6 months ago #19486 by BigJohnT
In 2.4 I came to the same conclusion as you about the directory structure and used the directory pointed to by program prefix. In 2.5 it is much better behaved and I placed all my subroutines in the /subroutine directory under emc2.

In my ini I have:
[DISPLAY]
...
NGCGUI_SUBFILE = /home/john/emc2/subroutines/face.ngc

[RS274NGC]
SUBROUTINE_PATH = /home/john/emc2/subroutines

John

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

More
14 years 6 months ago #19488 by ArcEye
I will have to try that John.
Because mine 'just work', I haven't done anything to them since I wrote them.

A lot of features were consolidated and repaired in 2.5, this is probably one of them.

regards

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

More
14 years 6 months ago #19490 by BigJohnT
Yea, if it ain't broke don't fix it is my motto too...

John

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

More
14 years 6 months ago #19505 by submicro
Thanks guys that did the trick! No more relative paths for me :-)

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

More
14 years 6 months ago #19514 by Rick G
Glad you got it sorted out.

Rick G

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

Time to create page: 0.060 seconds
Powered by Kunena Forum