def determine_db_path():

    if getattr(sys, 'frozen', False):
        # The application is frozen
        datadir = os.path.dirname(sys.executable)
    else:
        # The application is not frozen
        datadir = os.path.dirname(__file__)

    return datadir + '/res'
Creates a TCP connection to given peer address.
dataset/ETHPy150Open BastiPaeltz/codedict/source/database.py/determine_db_path--crossover with--dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/base.py/Activity._connect_tcp