24#include <wx/filename.h>
33 const wxString root = wxS(
"C:\\" );
35 const wxString root = wxS(
"/" );
38 const wxString
project = root + wxS(
"work/board/" );
43 wxS(
"../sheets/a4.kicad_wks" ) );
47 root + wxS(
"work/board/out/" ) );
57 wxFileName tempDir = wxFileName::DirName( wxFileName::GetTempDir() );
58 tempDir.Normalize( wxPATH_NORM_ALL & ~wxPATH_NORM_CASE );
60 const wxString temp = tempDir.GetPathWithSep();
61 const wxString sheet = temp + wxS(
"sheets" ) + wxFileName::GetPathSeparator() + wxS(
"a4.kicad_wks" );
62 const wxString
project = temp + wxS(
"board" );
66 wxS(
"out/fab.zip" ) );
68 wxS(
"${SHARED}/sheets/a4.kicad_wks" ) );
KiCad uses environment variables internally for determining the base paths for libraries,...
wxString MakeRelativePath(const wxString &aPath, const wxString &aBaseDir)
Express an absolute path relative to a base directory, stepping out with ".." when needed.
wxString NormalizePathForProject(const wxString &aPath, const ENV_VAR_MAP *aEnvVars, const wxString &aProjectPath, bool aAllowParentDirs)
Choose how to store a path the user picked for a project.
Helper functions to substitute paths with environmental variables.
std::map< wxString, ENV_VAR_ITEM > ENV_VAR_MAP
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_CASE(MakeRelativePathToProject)
BOOST_AUTO_TEST_SUITE_END()