Fix missing env var expansion in pos file generation.

Fixes https://gitlab.com/kicad/code/kicad/issues/8178
This commit is contained in:
Jeff Young 2021-04-12 10:17:01 +01:00
parent 34ea6891b0
commit 2cba64b258
1 changed files with 2 additions and 1 deletions

View File

@ -339,7 +339,8 @@ bool DIALOG_GEN_FOOTPRINT_POSITION::CreateAsciiFiles()
// Create output directory if it does not exist.
// Also transform it in absolute path.
// Bail if it fails
wxFileName outputDir = wxFileName::DirName( m_plotOpts.GetOutputDirectory() );
wxString path = ExpandEnvVarSubstitutions( m_plotOpts.GetOutputDirectory(), &Prj() );
wxFileName outputDir = wxFileName::DirName( path );
wxString boardFilename = m_parent->GetBoard()->GetFileName();
m_reporter = &m_messagesPanel->Reporter();