[plt-scheme] Require and a path

From: Zhu Chongkai (mathematica at citiz.net)
Date: Tue Apr 5 00:45:20 EDT 2005

>I have expressions like:
>(require "string-utils.scm")
>Is there a way to use a full or relative path here? I have tried 
>(require (build-path 'up "string-utils.scm")) and 
>(require (file (build-path 'up "string-utils.scm"))) etc. 
>but it all fails with "bad module path ..."

The <PLT MzScheme: Language Manual> tells every thing. Since you 
asked, I repeat them here. But you should read the document before

section 5.2
>(require require-spec ...) 
>require-spec is one of
>  module-name
>  ...
section 5.4
>module-name is one of
>(file path-string) 
>(lib filename-string collection-string ...)
>(planet . datum)

The (file path-string) is just what you want.

Zhu Chongkai

Posted on the users mailing list.