Beispiel #1
0
timer.setTimerType(2)
schid = getCurrentServerConnectionHandlerID()
last = ""
(_e, ownid) = getClientID(schid)
clid = ownid
ownID = ownid
(_e, owncid) = getChannelOfClient(schid, ownid)
cid = owncid
ownCID = owncid
#if "aaa_ts3Ext" in PluginHost.active: ts3host = PluginHost.active["aaa_ts3Ext"].ts3host
#else: ts3host = ts3Ext.ts3SessionHost(next(iter(PluginHost.active.values())))

print('(pyTSon v{} on {} | Console started at: {:%Y-%m-%d %H:%M:%S})'.format(
    pytson.getVersion(), pytson.platformstr(), datetime.now()))
print("Client curAPI: {} | LibVer: {} | LibVerNum: {}".format(
    pytson.getCurrentApiVersion(), ts3lib.getClientLibVersion(),
    ts3lib.getClientLibVersionNumber()))
print("Python {} {} API: {}".format(sys.platform, sys.version,
                                    sys.api_version))
print("sys.executable: %s" % sys.executable)
print("ts3lib.getAppPath(): %s" % ts3lib.getAppPath())
print("ts3lib.getConfigPath(): %s" % ts3lib.getConfigPath())
print("ts3lib.getResourcesPath(): %s" % ts3lib.getResourcesPath())
print("ts3lib.getPluginPath(): %s" % ts3lib.getPluginPath())
print("pytson.getConfigPath(): %s" % pytson.getConfigPath())
print("pytson.getPluginPath(): %s" % pytson.getPluginPath())
print("bluscream.getScriptPath(): %s" % getScriptPath("console"))
i = 0
for item in sys.path:
    print('sys.path[{}]"{}"'.format(i, item))
    i += 1
Beispiel #2
0
    #             return
    #         elif c == 3:
    #             print("Sent command "+cmd+" to PluginCommandTarget_CURRENT_CHANNEL_SUBSCRIBED_CLIENTS")
    #         elif c == 4:
    #             print("Sent command "+cmd+" to PluginCommandTarget_MAX")
    #         sendPluginCommand(schid, cmd, c, [])

self = QApplication.instance()
schid = getCurrentServerConnectionHandlerID()
(_e, ownid) = getClientID(schid)
(_e, owncid) = getChannelOfClient(schid, ownid)
if "aaa_ts3Ext" in PluginHost.active: ts3host = PluginHost.active["aaa_ts3Ext"].ts3host
else: ts3host = ts3Ext.ts3SessionHost(next(iter(PluginHost.active.values())))

print('(pyTSon v{} on {} | Console started at: {:%Y-%m-%d %H:%M:%S})'.format(pytson.getVersion(),pytson.platformstr(),datetime.now()))
print("Client curAPI: {} | LibVer: {} | LibVerNum: {}".format(pytson.getCurrentApiVersion(),ts3lib.getClientLibVersion(),ts3lib.getClientLibVersionNumber()))
print("Python {} {} API: {}".format(sys.platform, sys.version, sys.api_version))
print("sys.executable: %s"%sys.executable)
print("ts3lib.getAppPath(): %s"%ts3lib.getAppPath())
print("ts3lib.getConfigPath(): %s"%ts3lib.getConfigPath())
print("ts3lib.getResourcesPath(): %s"%ts3lib.getResourcesPath())
print("ts3lib.getPluginPath(): %s"%ts3lib.getPluginPath())
print("pytson.getConfigPath(): %s"%pytson.getConfigPath())
print("pytson.getPluginPath(): %s"%pytson.getPluginPath())
i = 0
for item in sys.path:
    print('sys.path[{}]"{}"'.format(i, item))
    i+=1
print("")
print(sys.flags)
print("")