import threading
import ConfigParser
cfg = {}
cp = ConfigParser.ConfigParser()
cp.read('/home/ente/src/ente.cfg')
for section in cp.sections():
    sec_cfg = dict([(key.lower(), value) for key, value in cp.items(section)])
    cfg[section.lower()] = sec_cfg

def get_section(s):
    return cfg[s.lower()]

def get_entry(e, default=None):
    section, key = e.lower().split(".", 1)
    return cfg.get(section, {}).get(key, default)

def add_change_hook(f):
    pass

from __main__ import global_stuff, bootstrap_thread
global_stuff.config_funcs = [get_section, get_entry, add_change_hook]

import ente_init
ente_init.init_io_redirect("utf-8")

# ente processes don't provide sys.argv, thats why we fake it here
import sys
sys.argv = ["run.py"]

import tasks.tasks
reload(tasks.tasks)

def main_thread():
    tasks.tasks.app.worker_main()

def start_main_thread(*a, **kw):
    threading.Thread(target=lambda: bootstrap_thread(main_thread)).start()
    # do not join, ente needs this function to return

ente_init.set_bgthread_hook(start_main_thread)

b5204ceb072b163ec1b04827d08c3ec83a9b0a5e
<mask token>


def get_entry(e, default=None):
    section, key = e.lower().split('.', 1)
    return cfg.get(section, {}).get(key, default)


def add_change_hook(f):
    pass


<mask token>


def main_thread():
    tasks.tasks.app.worker_main()


def start_main_thread(*a, **kw):
    threading.Thread(target=lambda : bootstrap_thread(main_thread)).start()


<mask token>

<mask token>


def get_section(s):
    return cfg[s.lower()]


def get_entry(e, default=None):
    section, key = e.lower().split('.', 1)
    return cfg.get(section, {}).get(key, default)


def add_change_hook(f):
    pass


<mask token>


def main_thread():
    tasks.tasks.app.worker_main()


def start_main_thread(*a, **kw):
    threading.Thread(target=lambda : bootstrap_thread(main_thread)).start()


<mask token>

<mask token>
cfg = {}
cp = ConfigParser.ConfigParser()
cp.read('/home/ente/src/ente.cfg')
for section in cp.sections():
    sec_cfg = dict([(key.lower(), value) for key, value in cp.items(section)])
    cfg[section.lower()] = sec_cfg


def get_section(s):
    return cfg[s.lower()]


def get_entry(e, default=None):
    section, key = e.lower().split('.', 1)
    return cfg.get(section, {}).get(key, default)


def add_change_hook(f):
    pass


<mask token>
global_stuff.config_funcs = [get_section, get_entry, add_change_hook]
<mask token>
ente_init.init_io_redirect('utf-8')
<mask token>
sys.argv = ['run.py']
<mask token>
reload(tasks.tasks)


def main_thread():
    tasks.tasks.app.worker_main()


def start_main_thread(*a, **kw):
    threading.Thread(target=lambda : bootstrap_thread(main_thread)).start()


ente_init.set_bgthread_hook(start_main_thread)

import threading
import ConfigParser
cfg = {}
cp = ConfigParser.ConfigParser()
cp.read('/home/ente/src/ente.cfg')
for section in cp.sections():
    sec_cfg = dict([(key.lower(), value) for key, value in cp.items(section)])
    cfg[section.lower()] = sec_cfg


def get_section(s):
    return cfg[s.lower()]


def get_entry(e, default=None):
    section, key = e.lower().split('.', 1)
    return cfg.get(section, {}).get(key, default)


def add_change_hook(f):
    pass


from __main__ import global_stuff, bootstrap_thread
global_stuff.config_funcs = [get_section, get_entry, add_change_hook]
import ente_init
ente_init.init_io_redirect('utf-8')
import sys
sys.argv = ['run.py']
import tasks.tasks
reload(tasks.tasks)


def main_thread():
    tasks.tasks.app.worker_main()


def start_main_thread(*a, **kw):
    threading.Thread(target=lambda : bootstrap_thread(main_thread)).start()


ente_init.set_bgthread_hook(start_main_thread)

import threading
import ConfigParser
cfg = {}
cp = ConfigParser.ConfigParser()
cp.read('/home/ente/src/ente.cfg')
for section in cp.sections():
    sec_cfg = dict([(key.lower(), value) for key, value in cp.items(section)])
    cfg[section.lower()] = sec_cfg

def get_section(s):
    return cfg[s.lower()]

def get_entry(e, default=None):
    section, key = e.lower().split(".", 1)
    return cfg.get(section, {}).get(key, default)

def add_change_hook(f):
    pass

from __main__ import global_stuff, bootstrap_thread
global_stuff.config_funcs = [get_section, get_entry, add_change_hook]

import ente_init
ente_init.init_io_redirect("utf-8")

# ente processes don't provide sys.argv, thats why we fake it here
import sys
sys.argv = ["run.py"]

import tasks.tasks
reload(tasks.tasks)

def main_thread():
    tasks.tasks.app.worker_main()

def start_main_thread(*a, **kw):
    threading.Thread(target=lambda: bootstrap_thread(main_thread)).start()
    # do not join, ente needs this function to return

ente_init.set_bgthread_hook(start_main_thread)
