Woops, racket/gui/interactive should load .gracketrc.

(Cannot use (find-system-path 'init-file) because it will always
evaluate to .racketrc, even in gracket (where it should be
.gracketrc).)
This commit is contained in:
Leif Andersen 2016-07-23 02:27:40 -04:00
parent 0ae02837e5
commit cb81e3768d

View File

@ -1 +1,12 @@
#lang racket/gui
(let ([init-file (cleanse-path
(build-path
(find-system-path 'init-dir)
; Cludge because (find-system-path init-path) will
; always return .racketrc, even in gracket
(case (system-type)
[(unix macosx) ".gracketrc"]
[(windows) "gracketrc.rktl"])))])
(when (file-exists? init-file)
(load init-file)))