Short form of file names

Skip Montanaro skip at pobox.com
Fri Jul 6 14:16:53 EDT 2001


    Mikhail> Is there some Python module for converting Windows long paths
    Mikhail> to short form, i.e. 8.3? os.path.normpath() does not do this..

Try importing dospath directly:

    >>> import dospath
    >>> dospath.normpath("/supercalifragilisticexpealidocious.py")
    '\\supercal.py'

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098




More information about the Python-list mailing list