def get_classpath(extrajars, daemon=True, client=False):
    ret = get_wildcard_dir(STORM_DIR)
    if client:
        ret.extend(get_wildcard_dir(STORM_WORKER_LIB_DIR))
    else:
        ret.extend(get_wildcard_dir(STORM_LIB_DIR))
    ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, 'extlib')))
    if daemon:
        ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, 'extlib-daemon')))
    if (STORM_EXT_CLASSPATH != None):
        ret.append(STORM_EXT_CLASSPATH)
    if (daemon and (STORM_EXT_CLASSPATH_DAEMON != None)):
        ret.append(STORM_EXT_CLASSPATH_DAEMON)
    ret.extend(extrajars)
    return normclasspath(os.pathsep.join(ret))
def get_classpath(extrajars, daemon=True, client=False):
    ret = get_wildcard_dir(STORM_DIR)
    if client:
        ret.extend(get_wildcard_dir(STORM_WORKER_LIB_DIR))
    else:
        ret.extend(get_wildcard_dir(STORM_LIB_DIR))
    ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, 'extlib')))
    if daemon:
        ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, 'extlib-daemon')))
    if (STORM_EXT_CLASSPATH != None):
        ret.append(STORM_EXT_CLASSPATH)
    if (daemon and (STORM_EXT_CLASSPATH_DAEMON != None)):
        ret.append(STORM_EXT_CLASSPATH_DAEMON)
    ret.extend(extrajars)
    return normclasspath(os.pathsep.join(ret))