Hi, <br><br>I'm trying to determine the plugin folder at runtime for a plugin I'm writing;<br><br>an example of where I'd like this:<br><br> (define commit-button<br> (new switchable-button% <br>
(label "commit")<br> (parent (make-object vertical-pane% (get-button-panel))) <br> (callback fossil-commit-menu-callback)<br> [bitmap (make-object bitmap% "projectmgr.png" 'png #f)]<br>
))<br> (register-toolbar-button commit-button)<br>; <br> ;; my test<br> (dialog (path->string (current-directory)))<br> ;; shows current-directory to be '/'<br><br>The button appears without the image, and my test seems to confirm that the plugin is looking to find the PNG in '/' rather than inthe folder where the plugin is running from.<br>
<br>Any hints appreciated, as I can't seem to work this out from the documentation.<br><br>Cheers, <br><br>Stephen<br><br>