(cons *notification-output-port* #f)
(cons *trace-output-port* #f)
(cons *interaction-i/o-port* #f)
- (cons *working-directory-pathname*
- (*working-directory-pathname*))
+ (cons working-directory-pathname
+ (working-directory-pathname))
(cons *nearest-cmdl* cmdl)
(cons standard-error-hook #f)
(cons standard-warning-hook #f)
set-working-directory-pathname!
with-working-directory-pathname
working-directory-pathname)
- (export (runtime rep)
- *working-directory-pathname*)
(initialization (initialize-package!)))
(define-package (runtime user-interface)
(declare (usual-integrations))
(define (initialize-package!)
+ (set! working-directory-pathname (make-parameter #f))
(reset!)
(add-event-receiver! event:after-restore reset!))
(pathname-simplify
(pathname-as-directory
((ucode-primitive working-directory-pathname))))))
- (*working-directory-pathname* pathname)
+ (working-directory-pathname pathname)
(default-pathname-defaults pathname))
unspecific)
-(define *working-directory-pathname* (make-parameter #f))
-
-(define (working-directory-pathname)
- (*working-directory-pathname*))
+(define working-directory-pathname)
(define (set-working-directory-pathname! name)
(let ((pathname (new-pathname name)))
"no such directory")
'SET-WORKING-DIRECTORY-PATHNAME!
(list name)))
- (*working-directory-pathname* pathname)
+ (working-directory-pathname pathname)
(default-pathname-defaults pathname)
(cmdl/set-default-directory (nearest-cmdl) pathname)
pathname))
(define (with-working-directory-pathname name thunk)
(let ((pathname (new-pathname name)))
(parameterize* (list (cons default-pathname-defaults pathname)
- (cons *working-directory-pathname* pathname))
+ (cons working-directory-pathname pathname))
thunk)))
(define (new-pathname name)
(pathname-simplify
(pathname-as-directory
- (merge-pathnames name (*working-directory-pathname*)))))
\ No newline at end of file
+ (merge-pathnames name (working-directory-pathname)))))
\ No newline at end of file