aboutsummaryrefslogtreecommitdiff
path: root/kiosk-plugin.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'kiosk-plugin.tcl')
-rw-r--r--kiosk-plugin.tcl8
1 files changed, 7 insertions, 1 deletions
diff --git a/kiosk-plugin.tcl b/kiosk-plugin.tcl
index a47d7c6..ce3cd94 100644
--- a/kiosk-plugin.tcl
+++ b/kiosk-plugin.tcl
@@ -30,7 +30,13 @@ proc ::kiosk::readconfig {{fname kiosk.cfg}} {
if {[file exists $fname]} {
set fp [open $fname r]
} else {
- return False
+ set fname [file join $::current_plugin_loadpath $fname]
+ if {[file exists $fname]} {
+ set fp [open $fname r]
+ } else {
+ puts "kiosk.cfg not found"
+ return False
+ }
}
while {![eof $fp]} {
set data [gets $fp]