Re: [script] Checking if a scripting langage is available

Date : Wed, 27 Jul 2005 12:44:04 -0400
To : XSI(at)Softimage.COM
From : Bernard Lebel <3dbernard(at)gmail.com>
Subject : Re: [script] Checking if a scripting langage is available
Thanks Andy, your code works just great!


Bernard


On 7/27/05, Andy Nicholas <andy(at)andynicholas.com> wrote:
> I don't know if this'll help but...
> 
> if you do either of:
> 
> Set obj = CreateObject("VBScript")
> Set obj = CreateObject("JScript")
> 
> it seems to work since no exception is thrown. If you put something else
> in the quotes, you get an exception. If you can figure out what the
> library that contains Python is called, then you could do something
> similar, i.e.
> 
> On Error Resume Next
> Set obj = CreateObject("Python")
> If Err.Number=0 Then
>    'We have Python!
> Else
>    'Nope, we don't
> End If
> On Error Goto 0
> 
> 
> I don't have Python installed, so I can't test this.
> 
> Andy
> 
> 
> > Hello,
> >
> > I have this event, in VBScript, in wich I would like to test if Python
> > is an available langage in XSI. Is there a way to find out this
> > information in scripting in VBScript?
> >
> >
> > Thanks
> > Bernard
> >
> > ---
> > Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> > unsubscribe xsi
> >
> 
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>

---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.