def search_next_free_drive(): """search for a free drive""" try: return get_next_free_drive() except OSError: return "Error: No free drive!"
def substUncPath(self, path): freedrive = fileutils.get_next_free_drive() fileutils.subst(freedrive, path) return freedrive