diff options
| author | Arun Isaac | 2026-06-25 15:14:25 +0100 |
|---|---|---|
| committer | Arun Isaac | 2026-06-25 15:16:10 +0100 |
| commit | f218e5e444b9d4046a7e6adce487a14ab40248ac (patch) | |
| tree | dc01c2efed89143a2bcd80e97117bd7a2f3f070e /scripts | |
| parent | 819d999b504f7a1f642c3b8c40b6be82bd7eda6d (diff) | |
| download | ccwl-f218e5e444b9d4046a7e6adce487a14ab40248ac.tar.gz ccwl-f218e5e444b9d4046a7e6adce487a14ab40248ac.tar.lz ccwl-f218e5e444b9d4046a7e6adce487a14ab40248ac.zip | |
scripts: Spin off loader into ccwl-load in (ccwl lang).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/ccwl | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/ccwl b/scripts/ccwl index 6438e34..b2678ca 100755 --- a/scripts/ccwl +++ b/scripts/ccwl @@ -37,8 +37,7 @@ exec guile --no-auto-compile -e main -s "$0" "$@" (ccwl cwl) (ccwl graphviz) (ccwl lang) - (ccwl ui) - (ccwl utils)) + (ccwl ui)) (define (invalid-option opt name arg result) (error "Invalid option" name)) @@ -91,15 +90,7 @@ exec guile --no-auto-compile -e main -s "$0" "$@" (report-ccwl-violation c) (%compile-error #t)) (raise-exception c))) - (lambda () - (let ((source-path (canonicalize-path source))) - ;; Change directory before loading source file. The - ;; source file may reference other files with paths - ;; relative to its directory. - (call-with-current-directory (dirname source-path) - (lambda () - (load source-path - ccwl-read)))))))) + (cut ccwl-load source)))) (unless (%compile-error) (if (or (command? result) (js-expression? result) |
