Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(169279)

Unified Diff: Lib/site.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/plat-ios/regen ('k') | Lib/subprocess.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/site.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/site.py Wed Mar 02 00:01:35 2016 +0000
@@ -261,16 +261,19 @@ def getusersitepackages():
from sysconfig import get_path
if sys.platform == 'darwin':
from sysconfig import get_config_var
if get_config_var('PYTHONFRAMEWORK'):
USER_SITE = get_path('purelib', 'osx_framework_user')
return USER_SITE
+ elif sys.platform == 'ios':
+ USER_SITE = get_path('purelib', 'ios')
+ return USER_SITE
USER_SITE = get_path('purelib', '%s_user' % os.name)
return USER_SITE
def addusersitepackages(known_paths):
"""Add a per user site-package to sys.path
Each user has its own python directory with site-packages in the
« no previous file with comments | « Lib/plat-ios/regen ('k') | Lib/subprocess.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+