mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 09:30:44 +00:00
Add warning message if python libraries aren't loaded (mostly for devs)
This commit is contained in:
@@ -26,6 +26,8 @@ namespace renderdocui.Windows.Dialogs
|
||||
|
||||
ScintillaNET.Scintilla scriptEditor = null;
|
||||
|
||||
private bool m_LibsLoaded = false;
|
||||
|
||||
public PythonShell(Core core)
|
||||
{
|
||||
InitializeComponent();
|
||||
@@ -116,7 +118,10 @@ namespace renderdocui.Windows.Dialogs
|
||||
string libspath = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "pythonlibs.zip");
|
||||
|
||||
if (File.Exists(libspath))
|
||||
{
|
||||
m_LibsLoaded = true;
|
||||
searches.Add(libspath);
|
||||
}
|
||||
|
||||
engine.SetSearchPaths(searches);
|
||||
|
||||
@@ -310,6 +315,14 @@ namespace renderdocui.Windows.Dialogs
|
||||
"The 'renderdoc' module is available, as the matching namespace in C#.{1}",
|
||||
IronPython.CurrentVersion.AssemblyFileVersion, Environment.NewLine);
|
||||
|
||||
if (!m_LibsLoaded)
|
||||
{
|
||||
interactiveOutput.Text = String.Format("!!! pythonlibs.zip not found! Check installation !!!{0}" +
|
||||
"!!! If building locally, ensure you have compiled python libraries and copied to binary folder: !!!{0}" +
|
||||
"cd renderdocui/3rdparty/ironpython/ && ./compilelibs.sh /path/to/IronPython-2.7.4{0}{0}{1}",
|
||||
Environment.NewLine, interactiveOutput.Text);
|
||||
}
|
||||
|
||||
shellscope = NewScope(pythonengine);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user