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
81c84fca
Commit
81c84fca
authored
Feb 10, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix linux compil.
parent
c9356247
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
edaappl.cpp
common/edaappl.cpp
+3
-1
No files found.
common/edaappl.cpp
View file @
81c84fca
...
@@ -1251,7 +1251,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
...
@@ -1251,7 +1251,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
#elif defined(__UNIX__) // Linux and non-Apple Unix
#elif defined(__UNIX__) // Linux and non-Apple Unix
// Try the home directory:
// Try the home directory:
path
.
Empty
();
path
.
Empty
();
wxGetEnv
(
wxT
(
"
${HOME}"
,
&
path
)
wxGetEnv
(
wxT
(
"
HOME"
),
&
path
);
path
+=
wxT
(
"/kicad/share/"
)
+
relpath
;
path
+=
wxT
(
"/kicad/share/"
)
+
relpath
;
if
(
wxFileName
::
DirExists
(
path
)
)
if
(
wxFileName
::
DirExists
(
path
)
)
...
@@ -1262,6 +1262,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
...
@@ -1262,6 +1262,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
// Try the standard install path:
// Try the standard install path:
path
=
wxT
(
"/usr/local/kicad/share/"
)
+
relpath
;
path
=
wxT
(
"/usr/local/kicad/share/"
)
+
relpath
;
if
(
wxFileName
::
DirExists
(
path
)
)
if
(
wxFileName
::
DirExists
(
path
)
)
{
{
wxSetEnv
(
aKiSys3Dmod
,
path
);
wxSetEnv
(
aKiSys3Dmod
,
path
);
...
@@ -1270,6 +1271,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
...
@@ -1270,6 +1271,7 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
// Try the official distrib standard install path:
// Try the official distrib standard install path:
path
=
wxT
(
"/usr/share/kicad/"
)
+
relpath
;
path
=
wxT
(
"/usr/share/kicad/"
)
+
relpath
;
if
(
wxFileName
::
DirExists
(
path
)
)
if
(
wxFileName
::
DirExists
(
path
)
)
{
{
wxSetEnv
(
aKiSys3Dmod
,
path
);
wxSetEnv
(
aKiSys3Dmod
,
path
);
...
...
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