I decided to make my powermate dial coot scheme script a menu item,
so I have put the following in my .coot file:
(let ((menu (coot-menubar-menu "Dials")))
(add-simple-coot-menu-menuitem
menu "PowerMate"
(lambda ()
(load "/Users/wgscott/.coot-dials.scm"))))
It works, but ...
The menu item "PowerMate" appears twice in the "Dials" menu.
If I use (load "~/.coot-dials.scm")
or
(load "$HOME/.coot-dials.scm")
this doesn't work. Is there a reasonable way to generalize my load
statement without specifying my username uniquely?
Thanks.
Bill
|