aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" \
]
# ########################################################################