findEngine(engine)

Determines the location(s) of a scripting engine on a local computer.

Function only - no corresponding object.


Syntax

o_findEngine(engine)
engine: Text - the name of the script engine to find
return: scalar or array Text - the full path(s) to the file(s) found that match the specified name

Usage

Use this to find potential locations of a script engine on the local computer.

Location

menu: none

library: scriptLib

Example

The typical usage of findEngine occurs within the scriptConfig object to assist the user in finding installed versions of a given engine.

o_findEngine("python") finds several possibilities and returns an array
      C:\apps\python3.8\python.exe
   C:\Users\stan\AppData\Local\Microsoft\WindowsApps\python.exe
   C:\Program Files (x86)\Agilent\VEE Pro 7.0\veeos\python\python.exe

Notes

This object never needs to be run but rather is included as a convenience. If the user knows where their install is, then that can be configured. One possible use is to find old stale installs of a given scripting engine. Since a typical system has many files, findEngine() may take a while to execute.

Reference

Dependencies

This function is implemented with a Python script called via scriptPro.

Supported On 

VEE 7.0+, Windows 7+

See Also

which, findFile


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 03 February 2023 13:04.