def convert_path(cls, file):
        """
        Check to see if an extended path is given and convert appropriately
        """

        if isinstance(file,str):
            return file
        elif isinstance(file, list) and all([isinstance(x, str) for x in file]):
            return "/".join(file)
        else:
            print("Incorrect path specified")
            return -1
def convert_path ( cls , file ) : if isinstance ( file , str ) : return file elif isinstance ( file , list ) and all ( [ isinstance ( x , str ) for x in file ] ) : return "/" . join ( file ) else : print ( "Incorrect path specified" ) return - 1
Check to see if an extended path is given and convert appropriately