X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fstandalone.scm;h=1bed6c7f5e3b1ece0a36bb80cfa38dd2ada7bb16;hb=0acf79bfa1079369fa6117ff81bbe0faffa4f2d5;hp=346c1085a8d8b0321ec657eb33c316209aa006ad;hpb=1b4f371fe85ccdf1a5e5670cf5626426bd05d82b;p=lilypond.git diff --git a/scm/standalone.scm b/scm/standalone.scm index 346c1085a8..1bed6c7f5e 100644 --- a/scm/standalone.scm +++ b/scm/standalone.scm @@ -2,10 +2,13 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 1998--2002 Jan Nieuwenhuizen -;;;; Han-Wen Nienhuys +;;;; (c) 1998--2007 Jan Nieuwenhuizen +;;;; Han-Wen Nienhuys -(define standalone (not (defined? 'ly-gulp-file))) + +(use-modules (ice-9 rdelim)) + +(define standalone (not (defined? 'ly:gulp-file))) ;;(write standalone (current-error-port)) (define (gulp-file name) @@ -16,8 +19,8 @@ (define (scm-gulp-file name) (set! %load-path - (cons (string-append (getenv 'LILYPONDPREFIX) "/ly") - (cons (string-append (getenv 'LILYPONDPREFIX) "/ps") + (cons (string-append (getenv "LILYPOND_DATADIR") "/ly") + (cons (string-append (getenv "LILYPOND_DATADIR") "/ps") %load-path))) (let ((path (%search-load-path name))) (if path @@ -31,7 +34,7 @@ (number->string x)) " "))) -(define ly-gulp-file scm-gulp-file) -(define ly-number->string scm-number->string) +(define ly:gulp-file scm-gulp-file) +(define ly:number->string scm-number->string) -(eval-string (ly-gulp-file "lily.scm")) +(eval-string (ly:gulp-file "lily.scm"))