This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients Chaitanya Mannem, eric.smith, eryksun, serhiy.storchaka
Date 2016-02-24.18:21:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456338094.28.0.865562051818.issue26429@psf.upfronthosting.co.za>
In-reply-to
Content
os.path.dirname is documented as the first element of os.path.split, which in turn is documented to be empty when there's no slash in the path. 

An empty string is treated as the current directory by os.path.abspath. This is in line with an empty element in the PATH environment variable. Also, Python's sys.path uses an empty string for the current directory. If you want a dot for display and logging purposes, normalize via os.path.normpath:

    >>> os.path.normpath('')
    '.'
History
Date User Action Args
2016-02-24 18:21:34eryksunsetrecipients: + eryksun, eric.smith, serhiy.storchaka, Chaitanya Mannem
2016-02-24 18:21:34eryksunsetmessageid: <1456338094.28.0.865562051818.issue26429@psf.upfronthosting.co.za>
2016-02-24 18:21:34eryksunlinkissue26429 messages
2016-02-24 18:21:34eryksuncreate