Author vstinner
Recipients nedbat, vstinner
Date 2019-11-07.12:11:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1573128701.35.0.513653491347.issue38735@roundup.psfhosted.org>
In-reply-to
Content
The bug occurs on this line:

    if sys.pycache_prefix is not None:
        if not _path_isabs(head):
            head = _path_join(_os.getcwd(), head)
        if head[1] == ':' and head[0] not in path_separators: # <==== HERE
            head = head[2:]
        ...

I guess that head="/" in your case: so head[1] raises an IndexError.
History
Date User Action Args
2019-11-07 12:11:41vstinnersetrecipients: + vstinner, nedbat
2019-11-07 12:11:41vstinnersetmessageid: <1573128701.35.0.513653491347.issue38735@roundup.psfhosted.org>
2019-11-07 12:11:41vstinnerlinkissue38735 messages
2019-11-07 12:11:41vstinnercreate