| 152 | } |
| 153 | |
| 154 | bool InstallPythonWindows(const std::string& path, const PythonConfig& config){ |
| 155 | // std::string cmd = "powershell.exe -windowstyle hidden -ExecutionPolicy Bypass -File " + path + "/install_python.ps1 -version " + config.pythonVersion + " -config " + path; |
| 156 | std::string cmd = "powershell.exe -windowstyle hidden -ExecutionPolicy Bypass -File \"" + path + "/install_python.ps1\" -version " + config.pythonVersion + " -config \"" + path + "\""; |
| 157 | int rvalue = system(cmd.c_str()); |
| 158 | return (bool)rvalue; |
| 159 | } |
| 160 | |
| 161 | bool InstallPythonUnix(const std::string& path, const PythonConfig& config){ |
| 162 | std::string cmd = path + "/install_python.sh " + config.minicondaVersion + " " + config.pythonVersion + " " + path; |