Allow PCM to load schema from build dir

This commit is contained in:
Jon Evans 2021-11-09 20:46:52 -05:00
parent ae37ae7072
commit 8e2d599751
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ PLUGIN_CONTENT_MANAGER::PLUGIN_CONTENT_MANAGER( wxWindow* aParent ) : m_dialog(
m_3rdparty_path = PATHS::GetDefault3rdPartyPath();
// Read and store pcm schema
wxFileName schema_file( PATHS::GetStockDataPath(), "pcm.v1.schema.json" );
wxFileName schema_file( PATHS::GetStockDataPath( true ), "pcm.v1.schema.json" );
schema_file.Normalize();
schema_file.AppendDir( "schemas" );
std::ifstream schema_stream( schema_file.GetFullPath().ToUTF8() );