In order to allow static compilation, the path in a (file …) require must be a 
literal string. 

It sounds like you might be looking for “dynamic-require” ?

Apologies if I’m misunderstanding you.

John Clements


> On Feb 2, 2021, at 3:20 PM, [email protected] <[email protected]> wrote:
> 
> I can't seem to build paths the way require wants them on windows. 
> 
> I must be missing something basic.
> 
> Tried a bunch of things (can't remember them all), here's the last: 
> (Racket versions  8.0.0.4--2021-02-01 and 7.8)
> 
> (define wrk_dir #"C:/Temporary/zDEL3/TEST_BATCH/")
> (require(file(bytes->string/utf-8(bytes-append wrk_dir #"vend_map.rkt"))))
> 
> 
> 
> . file: ill-formed module path in: (file (bytes->string/utf-8 (bytes-append 
> wrk_dir #"vend_map.rkt")))
> > 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/92dea514-f8f7-49f2-bf5a-1799430cd4bfn%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5d6ed0ab-5ca8-4036-8248-47ddcefea101%40mtasv.net.

Reply via email to