Perhaps a stupid question: are you certain the file, cbl_data.cfg, is in the the current working directory? Have you tried fully qualifying the file name in field_list = create_field_list('cbl_data.cfg')?
_________________
Bob Rashkin
I think it depends on your platform. On Linux and UNIX systems you could run your script from a cron job. On Windows (at least the versions through XP; I don't know anymore) there was an AT configuration that would do something similar.
_________________
Bob Rashkin
I haven't followed the entire thread but have you considered Bodhi? I use it exclusively but I don't have a real need to be compatible with Windows users. That is, I have LibreOffice and make do with their export (.docx, .pdf,...) when I need to. There are some things you just can't get for...
I personally no longer have a platform that runs Tcl BUT... it's not a hard problem. Look at the "file" and "glob" functions. Start with just the directories, not the sub-directories. Remember that in Tcl, arrays are hashed so you can have something like "filenames(xyz/abc/qrl.ext)=n" where n is...
As far as the number of entries: pathName index last
should work.
I don't see how you can get around your first question unless you catch the error.
_________________
Bob Rashkin
There is sort of an exception when dealing with Tk GUI's. If you invoke a procedure from, say, a button, that procedure doesn't have to be defined in preceding lines. Obviously it must be defined by the time the user pushes the button.
_________________
Bob Rashkin
OK. You say you have the case sensitivity issue resolved but let's review. The list (dictionary) should be all lower case. Then you use "string tolower ..." on each word being tested. Then on the words that fail, use regsub to remove everything but the letters. So let's say you have a word...
Usually, I think that means that some substitution needs to be made prior to "exec". I don't see what that would be but oh well.
_________________
Bob Rashkin
Sometimes, scope is peculiar. Try, just to see what happens, building the command string outside the proc and passing it in as an argument.
_________________
Bob Rashkin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.