import sys sys.path.append('.') from avatar import Avatar if __name__ == '__main__': avat = Avatar() avat._get_img_list()