[Starkit] auto_execok and Starpacks

Joey Mukherjee joey at swri.edu
Mon Aug 8 11:03:03 CEST 2005


Ok, I am just now getting back to this.  This being the problem of a 
starpack seeing itself as a directory, not a file.

Anyway, is this a bug? Will it be fixed? Is there an easy work around?

One of my programs likes to do things to itself and other programs in 
that directory and now it just ignores itself.  Is there a way to get 
the name of the program being run?  Maybe I can work around it in code?

On Jul 6, 2005, at 4:13 PM, Andreas Kupries wrote:

>
>> I am creating a starpack and in this pack I use the function
>> auto_execok to see if programs are in the path.  Normally this works
>> fine, unless the program in question is the program I am currently
>> running.  This is strictly a starpack issue since it works normally
>> under wish or mktclapp.
>>
>> Does anyone know why?
>>
>> You can test this issue by creating a starpack from these two lines:
>>
>> -- junk.tcl --
>>
>> puts [auto_execok "junk"]
>> puts [auto_execok "ls"]
>>
>> --------------
>
> When the starpack 'junk' is running it will see itself as a directory, 
> not a
> file.
> [auto_execok] will ignore directories AFAIK.
>
>
> --
> 	Andreas Kupries <andreask at ActiveState.com>
> 	Developer @ http://www.ActiveState.com, a division of Sophos
> 	Tel: +1 604 484 6491
>
>
Joey



More information about the Starkit mailing list