~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to services/python-console

  • Committer: William Grant
  • Author(s): David Coles
  • Date: 2010-05-31 12:04:13 UTC
  • mto: This revision was merged to the branch mainline in revision 1825.
  • Revision ID: coles.david@gmail.com-20100531120413-4x8ufmzf9i25hybq
Editor: Migrate to CodeMirror. Syntax highlighting hardcoded to Python for the 
moment.

Show diffs side-by-side

added added

removed removed

Lines of Context:
170
170
 
171
171
    def run(self):
172
172
        # Set up global space and partial command buffer
173
 
        self.globs = {'__name__': '__main__'}
 
173
        self.globs = {}
174
174
        self.curr_cmd = ''
175
175
 
176
176
        # Set up I/O to use web interface
262
262
    def handle_globals(self, params):
263
263
        # Unpickle the new space (if provided)
264
264
        if isinstance(params, dict):
265
 
            self.globs = {'__name__': '__main__'}
 
265
            self.globs = {}
266
266
            for g in params:
267
267
                try:
268
268
                    self.globs[g] = cPickle.loads(params[g])