def get_addr(name):
    """
    Get the address to the multiprocessing.connection.Listener or Client objects in
    a platform dependent way
    
    :param name: the name of the chalmers program to connect to
    """

    if os.name == 'nt':
        return r'\\.\pipe\chalmers:%s' % name
    else:
        socdir = os.path.join(config.dirs.user_data_dir, 'sockets')
        if not os.path.isdir(socdir):
            os.makedirs(socdir)

        sock_path = os.path.join(socdir, '%s' % name)

        if 3 < sys.version_info.major:
            sock_path = sock_path.encode()

        return sock_path
dataset/ETHPy150Open Anaconda-Platform/chalmers/chalmers/event_dispatcher.py/get_addr/swapped operands of `<`