summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-10-12 19:05:50 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-10-12 19:05:50 -0400
commit288913eff2fc308354a373c39463e48bb879ea91 (patch)
tree1e791dd3d7f722430de980619e4dd55d632eee25
parent6ab9322709487f870d342b14bfbe952612d0c274 (diff)
ui: Add CWD to Guile load path.
* haunt/ui.scm (haunt-main): Add CWD to Guile load path.
-rw-r--r--haunt/ui.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/haunt/ui.scm b/haunt/ui.scm
index fd211e3..5ae7dd2 100644
--- a/haunt/ui.scm
+++ b/haunt/ui.scm
@@ -124,6 +124,9 @@ There is NO WARRANTY, to the extent permitted by law.~%"
(apply command-main args))))
(define* (haunt-main arg0 . args)
+ ;; Add haunt site directory to Guile's load path so that user's can
+ ;; easily import their own modules.
+ (add-to-load-path (getcwd))
(setlocale LC_ALL "")
(match args
(()