Rauhan commited on
Commit
196fdcc
·
1 Parent(s): 057a0e0

UPDATE: exportToDashboard

Browse files
analyticsHub/components/__init__.py CHANGED
@@ -6,7 +6,7 @@ import io
6
  class REPLManager:
7
  def __init__(self):
8
  params = readYaml("params.yaml")
9
- self.__persistentGlobals = dict()
10
  self.__stdout = io.StringIO()
11
  self.__stderr = io.StringIO()
12
  exec(params.get("redisFunctionCode"), self.__persistentGlobals)
@@ -26,7 +26,6 @@ class REPLManager:
26
  self.__stderr.truncate(0)
27
  self.__stderr.seek(0)
28
  self.__globals = dict(self.__persistentGlobals)
29
-
30
  if error == "":
31
  return output
32
  else:
 
6
  class REPLManager:
7
  def __init__(self):
8
  params = readYaml("params.yaml")
9
+ self.__persistentGlobals = {"__name__": "__main__"}
10
  self.__stdout = io.StringIO()
11
  self.__stderr = io.StringIO()
12
  exec(params.get("redisFunctionCode"), self.__persistentGlobals)
 
26
  self.__stderr.truncate(0)
27
  self.__stderr.seek(0)
28
  self.__globals = dict(self.__persistentGlobals)
 
29
  if error == "":
30
  return output
31
  else: