From 35168d9c89904f0dc0bb470c1799f5ca3b04221f Mon Sep 17 00:00:00 2001 From: Josh Rosen Date: Tue, 22 Jan 2013 17:54:11 -0800 Subject: Fix sys.path bug in PySpark SparkContext.addPyFile --- python/test_support/userlibrary.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 python/test_support/userlibrary.py (limited to 'python/test_support') 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!" -- cgit v1.2.3