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
775ce399
Commit
775ce399
authored
Feb 07, 2014
by
Brian Sidebotham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix linux location for system project templates
parent
544f987f
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 @
775ce399
...
@@ -85,12 +85,23 @@ void KICAD_MANAGER_FRAME::CreateNewProject( const wxString aPrjFullFileName,
...
@@ -85,12 +85,23 @@ void KICAD_MANAGER_FRAME::CreateNewProject( const wxString aPrjFullFileName,
if
(
!
envStr
.
EndsWith
(
sep
)
)
if
(
!
envStr
.
EndsWith
(
sep
)
)
envStr
+=
sep
;
envStr
+=
sep
;
templatePath
=
envStr
+
wxT
(
"template"
)
+
sep
;
templatePath
=
envStr
+
wxT
(
"template"
)
+
sep
;
}
}
else
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
;
sep
+
wxT
(
".."
)
+
sep
+
wxT
(
"share"
)
+
sep
+
wxT
(
"template"
)
+
sep
;
}
}
}
ps
->
AddPage
(
_
(
"System Templates"
),
templatePath
);
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