(self)
return current_device
Get the current drive letter or Z:
Get the current drive letter or Z:
Get the current drive letter or Z :
def _get_default_current_device(self):
        """Get the current drive letter or Z:"""
        if WIN32:
            letter, _ = os.path.splitdrive(os.path.abspath(getcwdu()))
            try:
                current_device = letter.encode('ascii')
            except UnicodeError:
                pass
        else:
            current_device = b'Z'
        return current_device
def _get_default_current_device ( self ) : if WIN32 : letter , _ = os . path . splitdrive ( os . path . abspath ( getcwdu ( ) ) ) try : current_device = letter . encode ( 'ascii' ) except UnicodeError : pass else : current_device = b'Z' return current_device