Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
e52d9342
Commit
e52d9342
authored
Apr 17, 2014
by
Maciej Suminski
Committed by
Dick Hollenbeck
Apr 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The kicad.exe project manager was not finding the kicad.pro file because it did
not know where the template directory was.
parent
8e6713ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
kicad.cpp
kicad/kicad.cpp
+21
-0
No files found.
kicad/kicad.cpp
View file @
e52d9342
...
...
@@ -79,6 +79,27 @@ bool PGM_KICAD::OnPgmInit( wxApp* aWxApp )
if
(
!
initPgm
()
)
return
false
;
// Add search paths to feed the PGM_KICAD::SysSearch() function,
// currenly limited in support to only look for project templates
{
SEARCH_STACK
bases
;
SystemDirsAppend
(
&
bases
);
// DBG( bases.Show( (std::string(__func__) + " bases").c_str() );)
for
(
unsigned
i
=
0
;
i
<
bases
.
GetCount
();
++
i
)
{
wxFileName
fn
(
bases
[
i
],
wxEmptyString
);
// Add KiCad template file path to search path list.
fn
.
AppendDir
(
wxT
(
"template"
)
);
m_bm
.
m_search
.
AddPaths
(
fn
.
GetPath
()
);
}
//DBG( m_bm.m_search.Show( (std::string( __func__ ) + " SysSearch()").c_str() );)
}
// Read current setup and reopen last directory if no filename to open on
// command line.
if
(
App
().
argc
==
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment