Ejemplo n.º 1
0
    def _run_msbuild(self, options):
        msbuild_path = escape_exe_path(self.msbuild_path)
        command_list = [msbuild_path] + options
        command_str = " ".join(command_list)
        if self.debug:
            click.secho("Running " + command_str)

        process = Popen(command_str, shell=True)
        return process.wait()
Ejemplo n.º 2
0
 def valid_nuget_executable(nuget_path):
     """
     Returns True if path is a valid NuGet executable, otherwise False
     """
     with open(os.devnull, "w") as devnull:
         try:
             return call(escape_exe_path(nuget_path) + " help", shell=True, stderr=devnull, stdout=devnull) == 0
         except:
             return False
Ejemplo n.º 3
0
 def valid_msbuild_executable(msbuild_path):
     """
     Returns True if path is a valid msbuild executable, otherwise False
     """
     with open(os.devnull, "w") as devnull:
         try:
             return call(escape_exe_path(msbuild_path) + " /?",
                         shell=True,
                         stderr=devnull,
                         stdout=devnull) == 0
         except IOError:
             return False