MCPcopy Create free account
hub / github.com/NatLabRockies/SAM / InstallPythonWindows

Function InstallPythonWindows

src/pythonhandler.cpp:154–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool 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
161bool InstallPythonUnix(const std::string& path, const PythonConfig& config){
162 std::string cmd = path + "/install_python.sh " + config.minicondaVersion + " " + config.pythonVersion + " " + path;

Callers 1

InstallPythonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected