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
742ee532
Commit
742ee532
authored
Feb 07, 2014
by
Brian Sidebotham
Browse files
Options
Browse Files
Download
Plain Diff
* Fix Project templates location under Linux, preserve Windows location
parents
d68940c4
775ce399
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
prjconfig.cpp
kicad/prjconfig.cpp
+13
-2
No files found.
kicad/prjconfig.cpp
View file @
742ee532
...
...
@@ -85,12 +85,23 @@ void KICAD_MANAGER_FRAME::CreateNewProject( const wxString aPrjFullFileName,
if
(
!
envStr
.
EndsWith
(
sep
)
)
envStr
+=
sep
;
templatePath
=
envStr
+
wxT
(
"template"
)
+
sep
;
templatePath
=
envStr
+
wxT
(
"template"
)
+
sep
;
}
else
{
templatePath
=
wxPathOnly
(
wxStandardPaths
::
Get
().
GetExecutablePath
())
+
// The standard path should be in the share directory for kicad. As
// it is normal on Windows to only have the share directory and not
// the kicad sub-directory we fall back to that if the directory
// doesn't exist
templatePath
=
wxPathOnly
(
wxStandardPaths
::
Get
().
GetExecutablePath
()
)
+
sep
+
wxT
(
".."
)
+
sep
+
wxT
(
"share"
)
+
sep
+
wxT
(
"kicad"
)
+
sep
+
wxT
(
"template"
)
+
sep
;
if
(
!
wxDirExists
(
templatePath
.
GetFullPath
()
)
)
{
templatePath
=
wxPathOnly
(
wxStandardPaths
::
Get
().
GetExecutablePath
()
)
+
sep
+
wxT
(
".."
)
+
sep
+
wxT
(
"share"
)
+
sep
+
wxT
(
"template"
)
+
sep
;
}
}
ps
->
AddPage
(
_
(
"System Templates"
),
templatePath
);
...
...
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