I tried to reproduce this problem, but wasn't able to. Which version of Racket are you using? How did you run the program?
On 6/20/19, Amir Teymuri <[email protected]> wrote: > I have the following situation: > > mylibrary: > > - src > - font.rkt > - gui.rkt > - scratch.rkt > > > So the src/ directory and the scratch.rkt file live in the same directory > mylibrary/. According to the documentation of Modules > (https://docs.racket-lang.org/guide/module-basics.html): > > The "sort.rkt" module uses the relative paths "db/lookup.rkt" and > "machine/control.rkt" to import from the database and machine-control > libraries... > > So i put these lines in my scratch.rkt: > > #lang racket > > (require "src/font.rkt" > "src/gui.rkt") > > but upon requiring the modules i get the error: > > > > (require "src/font.rkt" > "src/gui.rkt") > > Error: struct:exn:get-module-code > > get-module-code: no such file: #<path:/path/to//mylibrary/src/src/font.rkt> > > Why is Racket putting another src/ before the actual src/ directory? > > Thanks, > Amir > > -- > 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/ed560f1e-93df-4835-ad62-0d8b76cd8ed6%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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/CAFUu9R7bg%3DO3jLJwSK%3D37pO%3D8NbdVBbET%2Bn0LFMDKvtopLti2A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

