Open python installation page if module is missing

This commit is contained in:
N00MKRAD
2020-12-10 17:59:11 +01:00
parent 97f1548841
commit 770deff022
3 changed files with 15 additions and 2 deletions

View File

@@ -270,6 +270,8 @@ namespace Flowframes
{
hasShownError = true;
InterpolateUtils.ShowMessage($"A python module is missing.\nCheck {logFilename} for details.\n\n{line}\n\nIf you don't want to install it yourself, use the Python package from the Package Installer.", "Error");
if(!Pytorch.HasEmbeddedPyFolder())
Process.Start("https://github.com/n00mkrad/flowframes/blob/main/PythonDependencies.md");
}
if (!hasShownError && line.ToLower().Contains("no longer supports this gpu"))