[racket] the program can't find image file

From: Noel Welsh (noelwelsh at gmail.com)
Date: Sat Oct 9 03:22:02 EDT 2010

On Sat, Oct 9, 2010 at 2:40 AM, 김태윤 <kty1104 at gmail.com> wrote:

There is a transcription error. This

> (define-runtime-path hero ".")

should be

(define-runtime-path here ".")

here, not hero. We are defining a path called "here" that specifies
the path where the code is stored. I.e. here.

> (define hero
>  (bitmap
>    (path->string (build-path 'same "run.bmp"))))

When we build the path to run.bmp we want to use the path "here" we
defined above, so

(build-path here "run.bmp")


Posted on the users mailing list.