Re: [racket-users] incantation for library module to access a data file in the same directory?

2015-05-12 Thread Sam Tobin-Hochstadt
You probably want to use `define-runtime-path`, like this: ``` (require racket/runtime-path) (define-runtime-path rtd "realtime-test-data.rkt") (define (fun-timed-test-2) (define ip (open-input-file rtd)) ... rest of function ...) ``` Sam On Tue, May 12, 2015 at 11:42 AM thomas.lynch < thoma

[racket-users] incantation for library module to access a data file in the same directory?

2015-05-12 Thread thomas.lynch
I created a collection, then used raco to install it. Ran into a problem where a test function within module X in the collection accesses a file in the same directory as the source code: (define (fun-timed-test-2) (define ip (open-input-file "realtime-test-data.rkt")) (match-define (li