def pluginEnvironment(self):
"""
The pluginEnvironment method prints selected information about the
pluginEnvironment that the plugin is running in. It pulls some of this
information from the calling plugin and some from the server
pluginEnvironment.
"""
self.plugin.debugLog(u"DLFramework pluginEnvironment method called.")
indigo.server.log(u"")
indigo.server.log(u"{0:=^130}".format(" Initializing New Plugin Session "))
indigo.server.log(u"{0:<31} {1}".format("Plugin name:", self.plugin.pluginDisplayName))
indigo.server.log(u"{0:<31} {1}".format("Plugin version:", self.plugin.pluginVersion))
indigo.server.log(u"{0:<31} {1}".format("Plugin ID:", self.plugin.pluginId))
indigo.server.log(u"{0:<31} {1}".format("Indigo version:", indigo.server.version))
indigo.server.log(u"{0:<31} {1}".format("Python version:", sys.version.replace('\n', '')))
indigo.server.log(u"{0:<31} {1}".format("Mac OS Version:", platform.mac_ver()[0]))
indigo.server.log(u"{0:=^130}".format(""))
评论列表
文章目录