I was using Powershell fired from a custom keyboard shortcut to run one or two actions, but there was a good 5-6 second delay whilst Powershell initiated and connected.
Using Python, from the same shortcut, the execution is down to about 1 second.
BTW, I converted it to v3.4 using the 2to3 script which is included in \Tools\Scripts when you install Python 3.
The convertor missed two lines.
Change set_server to:
- Code: Select all
def set_server (in_server_address):
"""
Stores the server address, for use by the API/Wrapper.
Inputs:
indigo_server - the full url of the server (ie http://127.0.0.1:8176)
Output:
None
"""
global server_address
server_address = in_server_address[/quote]
and within set_server_authentication() it misses adding "urrlib.request." on the build_opener
[code]self.opener = urllib.request.build_opener( self.handler)
Peter