Skip to content

Commit

Permalink
Now one can load and compile directly without setting `*ops-code-dire…
Browse files Browse the repository at this point in the history
…ctory*' at first.
  • Loading branch information
nakrakiiya committed Mar 18, 2013
1 parent 30f73e8 commit d63e407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ops.lisp
Expand Up @@ -43,18 +43,18 @@
;;; Source Directory ***************
;;; ********************************

(defparameter *ops-code-directory* ""
(defparameter *ops-code-directory* *load-pathname*
"Directory where OPS5 source code is stored.")

(defun ops-pathname (filename)
(concatenate 'string *ops-code-directory* filename))
(make-pathname :name filename :type nil :defaults *ops-code-directory*))

(defun load-ops-file (filename)
(load (ops-pathname filename)))

(defun compile-load (filename)
(let ((pname (ops-pathname filename)))
(compile-file (concatenate 'string pname ".lisp"))
(compile-file (make-pathname :type "lisp" :defaults pname))
(load pname)))

;;; ********************************
Expand Down

0 comments on commit d63e407

Please sign in to comment.