typedargs/shell.py
def _check_initialize_context(self):
        """
        Check if our context matches something that we have initialization commands
        for.  If so, run them to initialize the context before proceeding with other
        commands.
        """

        path = ".".join([annotate.context_name(x) for x in self.contexts])

        #Make sure we don't clutter up the output with return values from
        #initialization functions
        old_interactive = type_system.interactive
        type_system.interactive = False

        for key, cmds in self.init_commands.items():
            if path.endswith(key):
                for cmd in cmds:
                    line = self._split_line(cmd)
                    self.invoke(line)

        type_system.interactive = old_interactive
def _check_initialize_context(self):
        path = ".".join([annotate.context_name(x) for x in self.contexts])

        #Make sure we don't clutter up the output with return values from
        #initialization functions
        old_interactive = type_system.interactive
        type_system.interactive = False

        for key, cmds in self.init_commands.items():
            if path.endswith(key):
                for cmd in cmds:
                    line = self._split_line(cmd)
                    self.invoke(line)

        type_system.interactive = old_interactive
def _check_initialize_context ( self ) : path = "." . join ( [ annotate . context_name ( x ) for x in self . contexts ] ) #Make sure we don't clutter up the output with return values from #initialization functions old_interactive = type_system . interactive type_system . interactive = False for key , cmds in self . init_commands . items ( ) : if path . endswith ( key ) : for cmd in cmds : line = self . _split_line ( cmd ) self . invoke ( line ) type_system . interactive = old_interactive
Check if our context matches something that we have initialization commands
        for.  If so, run them to initialize the context before proceeding with other
        commands.
Check if our context matches something that we have initialization commands for . If so run them to initialize the context before proceeding with other commands .