Title: help() in interactive python raises TypeError under Windows
Type: behaviour Severity: normal
Components: Versions: 2.5alpha1
Status: closed Resolution: duplicate
Dependencies: Superseder: setuptools: 'NoneType' object has no attribute 'startswith'
View: 1069
Assigned To: Nosy List: gkalab, nriley
Priority: Keywords:

Created on 2008-07-16.11:29:56 by gkalab, last changed 2008-07-16.17:31:12 by nriley.

msg3335 (view) Author: (gkalab) Date: 2008-07-16.11:29:55
>>> help()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\jython2.5a1\Lib\", line 345, in __call__
    import pydoc
  File "C:\jython2.5a1\Lib\", line 1810, in <module>
    help = Helper(sys.stdin, sys.stdout)
  File "C:\jython2.5a1\Lib\", line 1624, in __init__
    execdir = os.path.dirname(sys.executable)
  File "C:\jython2.5a1\Lib\", line 208, in dirname
    return split(p)[0]
  File "C:\jython2.5a1\Lib\", line 165, in split
    d, p = splitdrive(p)
  File "C:\jython2.5a1\Lib\", line 120, in splitdrive
    if p[1:2] == ':':
TypeError: 'NoneType' object is unsubscriptable
msg3338 (view) Author: Nicholas Riley (nriley) Date: 2008-07-16.17:30:52
For the moment, please either edit jython.bat to move the -
Djython.executable= assignment or remove the registry file.  This will 
hopefully be fixed in alpha 2.
Date User Action Args
2008-07-16 17:31:12nrileysetstatus: open -> closed
2008-07-16 17:30:53nrileysetresolution: duplicate
superseder: setuptools: 'NoneType' object has no attribute 'startswith'
messages: + msg3338
nosy: + nriley
2008-07-16 11:29:56gkalabcreate