def findspark():
  
    sparkhome = os.getenv("SPARK_HOME")
    if sparkhome is None:
        raise Exception("The environment variable SPARK_HOME must be set to the Spark installation directory")
    else:
        return sparkhome
dataset/ETHPy150Open freeman-lab/spark-ml-streaming/python/mlstreaming/util.py/findspark/original