- Code: Select all
import os
# find the latest indigo version number and path to indigo directories
found=False
for indi in range(5,100): # we are optimistic for the future of indigo, starting with V5
if os.path.isdir("/Library/Application Support/Perceptive Automation/Indigo "+str(indi)):
found = True
continue
if found: break
#### and here the result for the Version number::
indigoVersion= indi-1
### and the path to indigo:
indigoPath = "/Library/Application Support/Perceptive Automation/Indigo "+str(indigoVersion)+"/"
Karl