in pyspark-sdk/src/feature_store_pyspark/__init__.py [0:0]
def classpath_jars():
"""Returns a list with the paths to the required jar files.
The sagemakerpyspark library is mostly a wrapper of the scala sagemakerspark sdk and it
depends on a set of jar files to work correctly. This function retrieves the location
of these jars in the local installation.
Returns:
List of absolute paths.
"""
import pkg_resources
import os
pkg_dir = __name__
jars_dir = "/jars/"
os.environ['PYTHON_EGG_CACHE'] = pkg_dir + '/tmp'
bundled_jars = pkg_resources.resource_listdir(pkg_dir, jars_dir)
jars = [pkg_resources.resource_filename(pkg_dir, jars_dir + jar) for jar in bundled_jars]
return jars