Apparently find-graphical-system-path finds the correct gracketrc file
This commit is contained in:
parent
52300ff032
commit
e293d24da7
|
@ -1,12 +1,5 @@
|
|||
#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"])))])
|
||||
(let ([init-file (cleanse-path (find-graphical-system-path 'init-file))])
|
||||
(when (file-exists? init-file)
|
||||
(load init-file)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user