That works! ;) I should have realized that there is probably a different function for load, haha ;) <br><br>Thanks for the quick reply ;)<br>yinso <br><br><div><span class="gmail_quote">On 4/23/07, <b class="gmail_sendername">
Matthew Flatt</b> <<a href="mailto:firstname.lastname@example.org">email@example.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At Mon, 23 Apr 2007 00:43:14 -0700, "Yin-So Chen" wrote:<br>> Dr Scheme REPL<br>> > (current-directory)<br>> #<path:C:\Local\PLT><br>> > (parameterize ((current-directory "c:\\data\\scheme\\lib\\util\\"))
<br>> (expand (with-input-from-file "c:\\data\\scheme\\lib\\util\\util.scm"<br>> read)))<br>> Error: open-input-file: cannot open input file: "c:\Local\PLT\foo.scm" (The<br>> system cannot find file specified.; errno=2)
<br><br>You need to set `current-load-relative-directory' instead of<br>`current-directory'.<br><br>I see that DrScheme initializes the `current-load-relative-directory'<br>parameter in the same way as the `current-directory' parameter.
<br>Probably it should be set to #f after the definitions windows is<br>evaluated, but we'll have to look into it more.<br><br>Matthew<br><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.yinsochen.com">