environment/lib/python2.7/site-packages/IPython/core/interactiveshell.py
def system_raw(self, cmd):
        """Call the given cmd in a subprocess using os.system

        Parameters
        ----------
        cmd : str
          Command to execute.
        """
        cmd = self.var_expand(cmd, depth=1)
        # protect os.system from UNC paths on Windows, which it can't handle:
        if sys.platform == 'win32':
            from IPython.utils._process_win32 import AvoidUNCPath
            with AvoidUNCPath() as path:
                if path is not None:
                    cmd = '"pushd %s &&"%s' % (path, cmd)
                cmd = py3compat.unicode_to_str(cmd)
                ec = os.system(cmd)
        else:
            cmd = py3compat.unicode_to_str(cmd)
            ec = os.system(cmd)
        
        # We explicitly do NOT return the subprocess status code, because
        # a non-None value would trigger :func:`sys.displayhook` calls.
        # Instead, we store the exit_code in user_ns.
        self.user_ns['_exit_code'] = ec
def system_raw(self, cmd):
        cmd = self.var_expand(cmd, depth=1)
        # protect os.system from UNC paths on Windows, which it can't handle:
        if sys.platform == 'win32':
            from IPython.utils._process_win32 import AvoidUNCPath
            with AvoidUNCPath() as path:
                if path is not None:
                    cmd = '"pushd %s &&"%s' % (path, cmd)
                cmd = py3compat.unicode_to_str(cmd)
                ec = os.system(cmd)
        else:
            cmd = py3compat.unicode_to_str(cmd)
            ec = os.system(cmd)
        
        # We explicitly do NOT return the subprocess status code, because
        # a non-None value would trigger :func:`sys.displayhook` calls.
        # Instead, we store the exit_code in user_ns.
        self.user_ns['_exit_code'] = ec
def system_raw ( self , cmd ) : cmd = self . var_expand ( cmd , depth = 1 ) # protect os.system from UNC paths on Windows, which it can't handle: if sys . platform == 'win32' : from IPython . utils . _process_win32 import AvoidUNCPath with AvoidUNCPath ( ) as path : if path is not None : cmd = '"pushd %s &&"%s' % ( path , cmd ) cmd = py3compat . unicode_to_str ( cmd ) ec = os . system ( cmd ) else : cmd = py3compat . unicode_to_str ( cmd ) ec = os . system ( cmd ) # We explicitly do NOT return the subprocess status code, because # a non-None value would trigger :func:`sys.displayhook` calls. # Instead, we store the exit_code in user_ns. self . user_ns [ '_exit_code' ] = ec
Call the given cmd in a subprocess using os.system

        Parameters
        ----------
        cmd : str
          Command to execute.
Call the given cmd in a subprocess using os . system