Author vstinner
Recipients nedbat, vstinner
Date 2019-11-07.12:11:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2019-11-07 12:11:41vstinnersetrecipients: + vstinner, nedbat
2019-11-07 12:11:41vstinnersetmessageid: <>
2019-11-07 12:11:41vstinnerlinkissue38735 messages
2019-11-07 12:11:41vstinnercreate