Checks if valid Python installation is found. Optionally a constant can also be passed in to hint which version of Python is preferred if Python has not already been loaded.
- Optional parameter: With this parameter you can pass in Python3Script.PreferredVersionValues enum value to hint which Python version you prefer if more than one is found.
- True if valid Python 3.4.x, 3.5.x, 3.6.x, 3.7.x or 3.8.x installation was found, else false.
Version 3.4.x, 3.5.x, 3.6.x, 3.7.x or 3.8.x is needed for this plugin. If you want for 2.7.x then please check our other PythonScript plugin.
Its good practice to for example put check like this in your Application.Open event, like for example:
If not Python3Script.PythonIsFound() then
MsgBox "Correct Python installation was not found on this machine"
And then your close event would look like this:
If Python3Script.PythonIsFound() then