24 #include <wx/translation.h> 40 "KICAD6_FOOTPRINT_DIR",
41 "KICAD6_TEMPLATE_DIR",
42 "KICAD_USER_TEMPLATE_DIR",
69 aMap[
"KICAD6_FOOTPRINT_DIR"] =
70 _(
"The base path of locally installed system " 71 "footprint libraries (.pretty folders).");
72 aMap[
"KICAD6_3DMODEL_DIR"] =
73 _(
"The base path of system footprint 3D shapes (.3Dshapes folders).");
74 aMap[
"KICAD6_SYMBOL_DIR"] =
75 _(
"The base path of the locally installed symbol libraries.");
76 aMap[
"KICAD6_TEMPLATE_DIR"] =
77 _(
"A directory containing project templates installed with KiCad.");
78 aMap[
"KICAD_USER_TEMPLATE_DIR"] =
79 _(
"Optional. Can be defined if you want to create your own project " 82 _(
"Internally defined by KiCad (cannot be edited) and is set " 83 "to the absolute path of the currently loaded project file. This environment " 84 "variable can be used to define files and paths relative to the currently loaded " 85 "project. For instance, ${KIPRJMOD}/libs/footprints.pretty can be defined as a " 86 "folder containing a project specific footprint library named footprints.pretty." );
87 aMap[
"KICAD6_SCRIPTING_DIR"] =
88 _(
"A directory containing system-wide scripts installed with KiCad" );
89 aMap[
"KICAD6_USER_SCRIPTING_DIR"] =
90 _(
"A directory containing user-specific scripts installed with KiCad" );
93 aMap[
"KICAD_PTEMPLATES"] =
94 _(
"Deprecated version of KICAD_TEMPLATE_DIR.");
96 _(
"Deprecated version of KICAD6_3DMODEL_DIR." );
98 _(
"Deprecated version of KICAD6_FOOTPRINT_DIR." );
99 aMap[
"KICAD_SYMBOL_DIR"] =
100 _(
"Deprecated version of KICAD_SYMBOL_DIR.");
108 if( env_var_help_text.size() == 0 )
111 return env_var_help_text[aEnvVar];
121 if( wxGetEnv( aEnvVarName, &env ) )
124 if( env.ToDouble( &value ) )
139 if( wxGetEnv( aEnvVarName, &env ) )
bool IsEnvVarImmutable(const wxString &aEnvVar)
Determine if an environment variable is "predefined", i.e.
const ENV_VAR_LIST & GetPredefinedEnvVars()
Get the list of pre-defined environment variables.
std::vector< wxString > ENV_VAR_LIST
static const ENV_VAR_LIST predefined_env_vars
std::map< wxString, wxString > STRING_MAP
wxString LookUpEnvVarHelp(const wxString &aEnvVar)
Look up long-form help text for a given environment variable.
void initialiseEnvVarHelp(STRING_MAP &aMap)
OPT< double > GetEnvVar(const wxString &aEnvVarName)
Get an environment variable as a specific type, if set correctly.
Functions related to environment variables, including help functions.