aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/files.py')
-rw-r--r--python/pyspark/files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/pyspark/files.py b/python/pyspark/files.py
index 98f6a399cc..001b7a28b6 100644
--- a/python/pyspark/files.py
+++ b/python/pyspark/files.py
@@ -35,4 +35,4 @@ class SparkFiles(object):
return cls._root_directory
else:
# This will have to change if we support multiple SparkContexts:
- return cls._sc.jvm.spark.SparkFiles.getRootDirectory()
+ return cls._sc._jvm.spark.SparkFiles.getRootDirectory()