<div>hello </div><div>I stuck at defining an image with relative path</div><div><br></div><div>when I define as (define image (bitmap "run.bmp")), it works only in my computer</div><div><br></div><div>because there is no run.bmp in other people's computer with exactly same path</div>
<div>and the compiler does not seems to include the image in the distribution file</div><div>but just refer to the absolute path</div><div><br></div><div>fortunately I receive an advice about this</div><div>but following code doesn't seems to work</div>
<div>could somebody let me know how to define image as relative path? or include image in the distribution file?</div><div><br></div><div><div>(define-runtime-path hero ".")</div><div>(define hero</div><div> (bitmap</div>
<div> (path->string (build-path 'same "run.bmp"))))</div></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">2010/10/9 Noel Welsh <span dir="ltr"><<a href="mailto:noelwelsh@gmail.com">noelwelsh@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I made an error.<br>
<br>
This<br>
<div class="im"><br>
> (define hero (build-path hero "run.bmp"))<br>
<br>
</div>should be<br>
<br>
(define hero<br>
(bitmap<br>
(path->string (build-path hero "run.bmp"))))<br>
<br>
HTH,<br>
<font color="#888888">N.<br>
</font></blockquote></div><br></div>