Hi,<br><br>For example, I have two module a and other-directory/b<br><br>a.rkt<br>----- begin of file ---<br><br>#lang racket<br><br>(define cwd (current-directory))<br><br>(provide cwd)<br><br>------- end of file ----<br>
<br>other-directory/b.rkt<br>---- begin ---<br>#lang racket<br><br>(require &quot;a.rkt)<br><br>(print cwd)<br>---- end ---<br><br>To execute racket b.rkt, it will print &quot;other-directory&quot; instead of the directory of a.rkt.<br>
<br>How to get the directory of a.rkt?<br><br><br>Thanks,<br>Haiwei<br>