def check_if_image_exists(item_name):
global client_version
file_name = 'Tools/screenshots/items/' + client_version + '_items/' + item_name.replace(' ', '_') + '.png'
if os.path.isfile(file_name):
return(file_name)
else:
print('You do not have an image file for {} so the script is aborting, to fix this issue either take a screenshot of {} or remove it from the list of items to merch'.format(item_name, item_name))
评论列表
文章目录