Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
be5d7079
Commit
be5d7079
authored
Apr 16, 2003
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When on MacOSX, and only in a framework build, add
~/Library/Python/2.3/site-packages to sys.path, if it exists.
parent
36d49a90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Lib/site.py
Lib/site.py
+13
-0
No files found.
Lib/site.py
View file @
be5d7079
...
...
@@ -172,6 +172,19 @@ for prefix in prefixes:
os
.
path
.
join
(
prefix
,
"lib"
,
"site-python"
)]
else
:
sitedirs
=
[
prefix
,
os
.
path
.
join
(
prefix
,
"lib"
,
"site-packages"
)]
if
sys
.
platform
==
'darwin'
:
# for framework builds *only* we add the standard Apple
# locations. Currently only per-user, but /Library and
# /Network/Library could be added too
if
'Python.framework'
in
prefix
:
home
=
os
.
environ
[
'HOME'
]
if
home
:
sitedirs
.
append
(
os
.
path
.
join
(
home
,
'Library'
,
'Python'
,
sys
.
version
[:
3
],
'site-packages'
))
for
sitedir
in
sitedirs
:
if
os
.
path
.
isdir
(
sitedir
):
addsitedir
(
sitedir
)
...
...
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