i get error, but why ?

Paste Your code(s) here, and state your problem.

i get error, but why ?

Postby Futz0r » Sun Sep 20, 2009 9:38 pm

[23:37] Tcl error in file 'eggdrop.conf':
[23:37] couldn't read file "path/to/service/foldermisc.tcl": no such file or dir
ectory
while executing
"source ${::service::variable::path}\misc.tcl"
(procedure "::service::initialize" line 2)
invoked from within
"::service::initialize"
(in namespace eval "::service" script line 84)
invoked from within
"namespace eval ::service {

# --- namespace variable
namespace eval variable {

# string variable trigge..."
(file "scripts/service.tcl" line 62)
invoked from within
"source scripts/service.tcl"
(file "eggdrop.conf" line 1367)
[23:37] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
If there's no errors above, your bot should show up on IRC soon.
Check http://windrop.sourceforge.net/windropfaq.html for help with any errors or
if bot doesn't show up on IRC.
Tryk på en vilkårlig tast for at fortsætte . . .


Code: Select all
 
# void proc initialize
      proc initialize { } {
          source ${::service::variable::path}\misc.tcl
          foreach files [split [glob -directory "${::service::variable::path}" *.tcl]] {
            if { [string equal -nocase [file tail $files] "service.tcl"] } { continue }
            source "$files"
          }
      }   




and my folder is in "C:\Windrop\scripts\service\misc.tcl" - but it said 1 folder more, and i dont know why...
Futz0r
 

Re: i get error, but why ?

Postby Futz0r » Sun Sep 20, 2009 9:45 pm

Nothing. i have found the bug :p

[23:43:25 - 20:09:2009] (futz0r) # string variable path [ path to the dir where the other scripts are. ]
[23:43:25 - 20:09:2009] (futz0r) variable path "path/to/service/"
[23:43:29 - 20:09:2009] (futz0r) det siger sig selv :D

on english -> It goes without saying
Futz0r
 


Return to TCL Scripting Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron