load files from the command line relative to the cwd
authorAndy Wingo <wingo@pobox.com>
Wed, 23 Jan 2013 15:05:13 +0000 (16:05 +0100)
committerAndy Wingo <wingo@pobox.com>
Wed, 23 Jan 2013 15:05:13 +0000 (16:05 +0100)
* module/ice-9/command-line.scm (load/lang): Load files from the command
  line relative to the current working directory (fixes regression).

module/ice-9/command-line.scm

index 1327412..9f8c9de 100644 (file)
@@ -184,7 +184,7 @@ If FILE begins with `-' the -s switch is mandatory.
 (define (load/lang f)
   (case (current-language)
     ((scheme)
-     (load f))
+     (load-in-vicinity (getcwd) f))
     (else
      ((module-ref (resolve-module '(system base compile)) 'compile-file)
       f #:to 'value))))