(script, directory=None, env_variables=None, get_output=False)
return SolverInstaller.run(cmd, directory=directory,
                                   env_variables=env_variables,
                                   get_output=get_output)
Executes a python script
Executes a python script
Executes a python script
def run_python(script, directory=None, env_variables=None, get_output=False):
        """Executes a python script"""
        interpreter = 'python'
        if sys.executable:
            interpreter = sys.executable

        cmd = '{interpreter} {script}'.format(interpreter=interpreter,
                                              script=script)
        return SolverInstaller.run(cmd, directory=directory,
                                   env_variables=env_variables,
                                   get_output=get_output)
def run_python ( script , directory = None , env_variables = None , get_output = False ) : interpreter = 'python' if sys . executable : interpreter = sys . executable cmd = '{interpreter} {script}' . format ( interpreter = interpreter , script = script ) return SolverInstaller . run ( cmd , directory = directory , env_variables = env_variables , get_output = get_output )