aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-01-20 22:52:08 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2012-01-20 22:52:08 -0500
commit27ca1f9dfbaacb4fcecbf2f33db404ff2bc36093 (patch)
tree95221ead6d7fece3c6e50d704819a02ac1a1d101
parent88c28044d943668228f413ee242a731f1c3762d6 (diff)
downloadGradeBook-27ca1f9dfbaacb4fcecbf2f33db404ff2bc36093.tar.gz
GradeBook-27ca1f9dfbaacb4fcecbf2f33db404ff2bc36093.zip
added directory with courses DB to config
-rwxr-xr-xGradeBook.tcl2
-rwxr-xr-xGradeBook_lib.tcl1
2 files changed, 2 insertions, 1 deletions
diff --git a/GradeBook.tcl b/GradeBook.tcl
index 41f75ba..d8180f3 100755
--- a/GradeBook.tcl
+++ b/GradeBook.tcl
@@ -68,7 +68,7 @@ dbg "===== Connection at $timestamp for user $user ====="
::ncgi::header
htmlHeader
puts "<body>"
-set dbfile "courses/$coursedbfname"
+set dbfile "$GradebookServerConfig(grades_db_dir)/$coursedbfname"
dbg "DB filename: $dbfile"
if { ($coursedbfname ne "") && [file exists $dbfile] } {
sqlite3 db $dbfile
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index dcdbb50..85a80d8 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -16,6 +16,7 @@ set VERSION 1.5.5
array set GradebookServerConfig [list \
icon_dir "/~evmik/icons" \
use_icons true \
+ grades_db_dir "./courses" \
]
# ########################################################################