Repository: systemml
Updated Branches:
  refs/heads/master 257bf3ed0 -> 9da5eab00


[MINOR] Bugfix to resolve UnboundLocalError in mlcontext


Project: http://git-wip-us.apache.org/repos/asf/systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/systemml/commit/9da5eab0
Tree: http://git-wip-us.apache.org/repos/asf/systemml/tree/9da5eab0
Diff: http://git-wip-us.apache.org/repos/asf/systemml/diff/9da5eab0

Branch: refs/heads/master
Commit: 9da5eab00efa86d1f135664dc7458e5f04c0097e
Parents: 257bf3e
Author: Niketan Pansare <npan...@us.ibm.com>
Authored: Sun Aug 6 13:24:55 2017 -0600
Committer: Niketan Pansare <npan...@us.ibm.com>
Committed: Sun Aug 6 14:24:55 2017 -0500

----------------------------------------------------------------------
 src/main/python/systemml/mlcontext.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/systemml/blob/9da5eab0/src/main/python/systemml/mlcontext.py
----------------------------------------------------------------------
diff --git a/src/main/python/systemml/mlcontext.py 
b/src/main/python/systemml/mlcontext.py
index b5a6bf9..4838f98 100644
--- a/src/main/python/systemml/mlcontext.py
+++ b/src/main/python/systemml/mlcontext.py
@@ -52,6 +52,7 @@ def _get_spark_context():
     """
     if SparkContext._active_spark_context is not None:
         sc = SparkContext._active_spark_context
+        global _loadedSystemML
         if not _loadedSystemML:
             createJavaObject(sc, 'dummy')
             _loadedSystemML = True

Reply via email to