mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Implemented PEP 405 (Python virtual environments).
This commit is contained in:
parent
f2bdc3690a
commit
7ded1f0f69
41 changed files with 1454 additions and 66 deletions
|
@ -120,7 +120,7 @@ class EditorWindow(object):
|
|||
|
||||
def __init__(self, flist=None, filename=None, key=None, root=None):
|
||||
if EditorWindow.help_url is None:
|
||||
dochome = os.path.join(sys.prefix, 'Doc', 'index.html')
|
||||
dochome = os.path.join(sys.base_prefix, 'Doc', 'index.html')
|
||||
if sys.platform.count('linux'):
|
||||
# look for html docs in a couple of standard places
|
||||
pyver = 'python-docs-' + '%s.%s.%s' % sys.version_info[:3]
|
||||
|
@ -131,13 +131,13 @@ class EditorWindow(object):
|
|||
dochome = os.path.join(basepath, pyver,
|
||||
'Doc', 'index.html')
|
||||
elif sys.platform[:3] == 'win':
|
||||
chmfile = os.path.join(sys.prefix, 'Doc',
|
||||
chmfile = os.path.join(sys.base_prefix, 'Doc',
|
||||
'Python%s.chm' % _sphinx_version())
|
||||
if os.path.isfile(chmfile):
|
||||
dochome = chmfile
|
||||
elif macosxSupport.runningAsOSXApp():
|
||||
# documentation is stored inside the python framework
|
||||
dochome = os.path.join(sys.prefix,
|
||||
dochome = os.path.join(sys.base_prefix,
|
||||
'Resources/English.lproj/Documentation/index.html')
|
||||
dochome = os.path.normpath(dochome)
|
||||
if os.path.isfile(dochome):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue