[Starkit] auto_execok and Starpacks

Andreas Kupries andreask at ActiveState.com
Wed Jul 6 15:13:11 CEST 2005


> 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



More information about the Starkit mailing list