diff options
author | Josh Rosen <joshrosen@eecs.berkeley.edu> | 2013-01-22 17:54:11 -0800 |
---|---|---|
committer | Josh Rosen <joshrosen@eecs.berkeley.edu> | 2013-01-22 17:54:11 -0800 |
commit | 35168d9c89904f0dc0bb470c1799f5ca3b04221f (patch) | |
tree | 39bfa48768f4382ea1104506eed4ff822c881c6c /python/test_support/userlibrary.py | |
parent | 7b9e96c99206c0679d9925e0161fde738a5c7c3a (diff) | |
download | spark-35168d9c89904f0dc0bb470c1799f5ca3b04221f.tar.gz spark-35168d9c89904f0dc0bb470c1799f5ca3b04221f.tar.bz2 spark-35168d9c89904f0dc0bb470c1799f5ca3b04221f.zip |
Fix sys.path bug in PySpark SparkContext.addPyFile
Diffstat (limited to 'python/test_support/userlibrary.py')
-rwxr-xr-x | python/test_support/userlibrary.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/python/test_support/userlibrary.py b/python/test_support/userlibrary.py new file mode 100755 index 0000000000..5bb6f5009f --- /dev/null +++ b/python/test_support/userlibrary.py @@ -0,0 +1,7 @@ +""" +Used to test shipping of code depenencies with SparkContext.addPyFile(). +""" + +class UserClass(object): + def hello(self): + return "Hello World!" |