I wonder if this teeny-tiny patch to axis.py could be considered.
It allows the user (like me) to specify an ini item: [DISPLAY]USER_COMMAND_FILE
so that commands can be executed from a user file.   A similar patch for
tkemc.tcl exists.  It is very convenient in allowing a user to make
some customizations without having to modify files in the distibution.

also at: http://pastebin.ca/1320337


Index: axis.py
===================================================================
RCS file: /cvs/emc2/src/emc/usr_intf/axis/scripts/axis.py,v
retrieving revision 1.225
diff -u -u -r1.225 axis.py
--- axis.py 26 Jan 2009 20:37:34 -0000    1.225
+++ axis.py 28 Jan 2009 05:31:05 -0000
@@ -3987,6 +3987,10 @@
 widgets.numbers_text.bind("<Configure>", commands.redraw_soon)
 live_plotter.update()
 live_plotter.error_task()
+user_command_file = inifile.find("DISPLAY", "USER_COMMAND_FILE")
+if user_command_file != "":
+    print "user_command_file=%s" % user_command_file
+    execfile(user_command_file)
 o.mainloop()
 live_plotter.stop()


-- 
Dewey Garrett


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to