Commit 4f45534e authored by Francois-Rene Rideau's avatar Francois-Rene Rideau
Browse files

Add a kluge for testing getcwd on Windows.

parent 6c6f235e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -2,9 +2,12 @@

(defun getcwd-from-run-program ()
  (uiop:parse-native-namestring
   (nest
    ;; TODO: fix run-program to use POWERSHELL.EXE rather than CMD, and remove this kluge.
    #+os-windows (string-trim " ")
    (run-program
     (os-cond ((os-unix-p) '("pwd" "-P")) ((os-windows-p) "echo %cd%"))
    :output '(:string :stripped t))
     :output '(:string :stripped t)))
   :ensure-directory t))

(let ((asdf-directory (truename *asdf-directory*)))