In a.rkt: #lang racket (require racket/runtime-path) (define-runtime-path cwd ".") (provide cwd)
On 12/14/2012 12:55 AM, Haiwei Zhou wrote: > Hi, > > For example, I have two module a and other-directory/b > > a.rkt > ----- begin of file --- > > #lang racket > > (define cwd (current-directory)) > > (provide cwd) > > ------- end of file ---- > > other-directory/b.rkt > ---- begin --- > #lang racket > > (require "a.rkt) > > (print cwd) > ---- end --- > > To execute racket b.rkt, it will print "other-directory" instead of the > directory of a.rkt. > > How to get the directory of a.rkt? > > > Thanks, > Haiwei > > > ____________________ > Racket Users list: > http://lists.racket-lang.org/users
____________________ Racket Users list: http://lists.racket-lang.org/users

