4673 default = os.path.join(os.path.dirname(executable), "doc") |
4673 default = os.path.join(os.path.dirname(executable), "doc") |
4674 else: |
4674 else: |
4675 default = "" |
4675 default = "" |
4676 pythonDocDir = Utilities.getEnvironmentEntry("PYTHON2DOCDIR", default) |
4676 pythonDocDir = Utilities.getEnvironmentEntry("PYTHON2DOCDIR", default) |
4677 else: |
4677 else: |
4678 pythonDocDir = Utilities.getEnvironmentEntry("PYTHON3DOCDIR", |
4678 pythonDocDir = Utilities.getEnvironmentEntry("PYTHON2DOCDIR", |
4679 '/usr/share/doc/packages/python/html/python-docs-html') |
4679 '/usr/share/doc/packages/python/html/python-docs-html') |
4680 if not pythonDocDir.startswith("http://") and \ |
4680 if not pythonDocDir.startswith("http://") and \ |
4681 not pythonDocDir.startswith("https://"): |
4681 not pythonDocDir.startswith("https://"): |
4682 if pythonDocDir.startswith("file://"): |
4682 if pythonDocDir.startswith("file://"): |
4683 pythonDocDir = pythonDocDir[7:] |
4683 pythonDocDir = pythonDocDir[7:] |