Пример #1
0
 def __init__(self):
     self.fso = FileSystemOperations()
     self.logger = Logger(log_level=0, console_level=3)
     self.comfun = CommonFunctions(self.logger)
Пример #2
0
'''
import sys
import xbmc, xbmcgui, xbmcplugin, xbmcaddon
import xbmcsc.client as client
import urllib

from xbmcsc.client import SoundCloudClient

plugin = "SoundCloud"
REMOTE_DBG = False
dbg = True  # Set to false if you don't want debugging
dbglevel = 3  # Do NOT change from 3

import CommonFunctions
common = CommonFunctions.CommonFunctions()
common.plugin = plugin

# append pydev remote debugger
if REMOTE_DBG:
    # Make pydev debugger works for auto reload.
    # Note pydevd module need to be copied in XBMC\system\python\Lib\pysrc
    try:
        import pysrc.pydevd as pydevd
        # stdoutToServer and stderrToServer redirect stdout and stderr to eclipse console
        pydevd.settrace('localhost', stdoutToServer=True, stderrToServer=True)
    except ImportError:
        sys.stderr.write(
            "Error: " +
            "You must add org.python.pydev.debug.pysrc to your PYTHONPATH.")
        sys.exit(1)