Skip to content

Commit

Permalink
dic読み込み方法再修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sile committed Jan 6, 2012
1 parent 55bbd55 commit 7f897f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -8,7 +8,7 @@


[バージョン]
・0.3.1
・0.3.2


[依存パッケージ]
Expand Down
2 changes: 1 addition & 1 deletion dawg.asd
Expand Up @@ -3,7 +3,7 @@
(defsystem dawg
:name "dawg"
:author "Takeru Ohta"
:version "0.3.1"
:version "0.3.2"

:serial t
:components ((:file "load-hashmap")
Expand Down
9 changes: 4 additions & 5 deletions load-hashmap.lisp
@@ -1,11 +1,10 @@
(eval-when (:load-toplevel :compile-toplevel :execute)
(defun root-path ()
(directory-namestring (or *compile-file-pathname* *load-pathname* #P"./")))
(defun load-local-system (package &optional (package-directory (root-path)))
(eval-when (:compile-toplevel)
(defun load-local-system (package &optional (package-directory #P"./"))
(let #.`((asdf:*central-registry* (directory package-directory))
;; or #+ASDF2
,@(when #.#1=(find-symbol "*DEFAULT-SOURCE-REGISTRIES*" :asdf)
`((,#1# nil))))
(asdf:load-system package))))

(load-local-system :dict-0.2.0 #P"lib/dict-0.2.0/")
(load-local-system :dict-0.2.0
#.(merge-pathnames #P"lib/dict-0.2.0/" *compile-file-pathname*))

0 comments on commit 7f897f1

Please sign in to comment.