Re: Wrapped application directory oddity




"Robert Heller" <heller@xxxxxxxxxxxx> wrote in message
news:2e114$4685afda$404a99a1$18636@xxxxxxxxxxxxxxxxxxxxxxxx
At Fri, 29 Jun 2007 21:48:19 GMT "Jeff Godfrey"
<jeff_godfrey@xxxxxxxxx> wrote:

Perhaps I should be filing a bug report?

Doesn't the CGI standard define environment variables for this?

Robert,

Good point. Looking at the reference I have, I don't see a
"DOCUMENT_ROOT" listed as a common CGI variable. That said, I *do*
see a PATH_TRANSLATED variable listed that it supposed to contain the
absolute pathname to the location of the CGI program on server's file
system. That's exactly what I need. I'll see if that's availabe to
me.

Actually, I've already written code to correct the malformed paths
(just a few calls to [string map]), so I'm really beyond the problem
anyway, but I could maybe remove that kludge with the above.. ;^)

I guess I'm more concerned with the odd return results in this case.
It seems to indicate some possible Tcl problem at level lower than my
script. In reality, I get 3 different results...

[info nameofexecutable] returns "//?/D:/WebHostings/...", which is
correct except for the leading 4 chars
[info script] returns "//?/D:WebHosting/...", which has the same
leading 4 chars *and* a missing slash after the drive name.
[pwd] returns "D:/WebHosting/..., which is just right...

I just find that odd, and wonder if its not a bug?

Thanks,

Jeff


.