pyspark/bigdl/util/engine.py
def get_bigdl_classpath():
    """
    Get and return the jar path for bigdl if exists.
    """
    if os.getenv("BIGDL_CLASSPATH"):
        return os.environ["BIGDL_CLASSPATH"]
    jar_dir = os.path.abspath(__file__ + "/../../")
    jar_paths = glob.glob(os.path.join(jar_dir, "share/lib/*.jar"))
    if jar_paths:
        assert len(jar_paths) == 1, "Expecting one jar: %s" % len(jar_paths)
        return jar_paths[0]
    return ""
def get_bigdl_classpath():
    if os.getenv("BIGDL_CLASSPATH"):
        return os.environ["BIGDL_CLASSPATH"]
    jar_dir = os.path.abspath(__file__ + "/../../")
    jar_paths = glob.glob(os.path.join(jar_dir, "share/lib/*.jar"))
    if jar_paths:
        assert len(jar_paths) == 1, "Expecting one jar: %s" % len(jar_paths)
        return jar_paths[0]
    return ""
def get_bigdl_classpath ( ) : if os . getenv ( "BIGDL_CLASSPATH" ) : return os . environ [ "BIGDL_CLASSPATH" ] jar_dir = os . path . abspath ( __file__ + "/../../" ) jar_paths = glob . glob ( os . path . join ( jar_dir , "share/lib/*.jar" ) ) if jar_paths : assert len ( jar_paths ) == 1 , "Expecting one jar: %s" % len ( jar_paths ) return jar_paths [ 0 ] return ""
Get and return the jar path for bigdl if exists.
Get and return the jar path for bigdl if exists .