Skip to content

Commit

Permalink
change exec() to use globals()
Browse files Browse the repository at this point in the history
  • Loading branch information
Tagar committed Feb 13, 2018
1 parent 8e09e86 commit 00e14d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion abalon/spark/sparkutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def sparkutils_init (i_spark=None, i_debug=False):
else:
# get spark session 'spark' variable from main namespace instead
try:
exec('spark = main_ns.' + spark_var_name)
exec('spark = main_ns.' + spark_var_name, globals())
except AttributeError:
print("Variable '{}' not found in main namespace".format(spark_var_name))
raise
Expand Down
2 changes: 1 addition & 1 deletion abalon/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version = '2.0.4'
version = '2.0.5'

0 comments on commit 00e14d9

Please sign in to comment.