[ANSWERED]: Install plugin from script

Posted on
Thu Jan 28, 2016 6:11 pm
jheddings offline
User avatar
Posts: 149
Joined: Dec 01, 2013
Location: Denver, CO

[ANSWERED]: Install plugin from script

Given a local folder with a plugin, is there a way to install the plugin from the SDK or Server via scripting? Essentially, I'm trying to produce the same result as double-clicking the plugin would do, but from a script rather than requiring user intervention.

Posted on
Fri Jan 29, 2016 9:44 am
matt (support) offline
Site Admin
User avatar
Posts: 21417
Joined: Jan 27, 2003
Location: Texas

Re: Install plugin from script

The user will still be prompted by Indigo GUI before it is installed, but you can simulate the double-click of the plugin file via:

Code: Select all
import subprocess
path = "some path/Some Plugin.indigoPlugin"
subprocess.Popen(['open', path])

Image

Posted on
Fri Jan 29, 2016 9:54 am
jheddings offline
User avatar
Posts: 149
Joined: Dec 01, 2013
Location: Denver, CO

Re: [ANSWERED]: Install plugin from script

Just tried that and it is working perfectly. The added confirmation is just what I was hoping for. After all, getting the user's consent to install is a good thing :)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 20 guests