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
9263a4e7
Commit
9263a4e7
authored
Feb 08, 2014
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MacOSX] Setting Set3DShapesPath
parent
2acaa287
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
edaappl.cpp
common/edaappl.cpp
+16
-2
No files found.
common/edaappl.cpp
View file @
9263a4e7
...
@@ -1231,8 +1231,22 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
...
@@ -1231,8 +1231,22 @@ bool EDA_APP::Set3DShapesPath( const wxString& aKiSys3Dmod )
wxString
relpath
(
wxT
(
"modules/packages3d"
)
);
wxString
relpath
(
wxT
(
"modules/packages3d"
)
);
// Apple MacOSx
// Apple MacOSx
#ifdef __APPLE__
#ifdef __WXMAC__
// TO DO
path
=
wxT
(
"/Library/Application Support/kicad/modules/packages3d/"
);
if
(
wxFileName
::
DirExists
(
path
)
)
{
wxSetEnv
(
aKiSys3Dmod
,
path
);
return
true
;
}
path
=
wxString
(
wxGetenv
(
wxT
(
"HOME"
)
)
)
+
wxT
(
"/Library/Application Support/kicad/modules/packages3d/"
);
if
(
wxFileName
::
DirExists
(
path
)
)
{
wxSetEnv
(
aKiSys3Dmod
,
path
);
return
true
;
}
#elif defined(__UNIX__) // Linux and non-Apple Unix
#elif defined(__UNIX__) // Linux and non-Apple Unix
path
=
wxT
(
"/usr/local/kicad/share/"
)
+
relpath
;
path
=
wxT
(
"/usr/local/kicad/share/"
)
+
relpath
;
...
...
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