MCPcopy Create free account
hub / github.com/Project-LemonLime/Project_LemonLime / selectPythonPath

Method selectPythonPath

src/addcompilerwizard.cpp:409–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409void AddCompilerWizard::selectPythonPath() {
410#ifdef Q_OS_WIN32
411 QString location = QFileDialog::getOpenFileName(this, tr("Select Interpreter\'s Location"),
412 QDir::rootPath(), "python (python.exe)");
413#else
414 QString location = QFileDialog::getOpenFileName(this, tr("Select Interpreter\'s Location"),
415 QDir::rootPath(), "python (python)");
416#endif
417
418 if (! location.isEmpty()) {
419 location = location.replace('/', QDir::separator());
420 ui->pythonPath->setText(location);
421 }
422}
423
424void AddCompilerWizard::accept() {
425 if (ui->customRadioButton->isChecked()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected