Fix reading directory names in gfx.py.

This commit is contained in:
yenatch 2015-08-31 20:38:03 -04:00
parent 682fc3ee5c
commit 62596e14c6
1 changed files with 1 additions and 1 deletions

2
gfx.py
View File

@ -42,7 +42,7 @@ def filepath_rules(filepath):
pokemon_name = ''
if 'gfx/pics/' in filedir:
pokemon_name = filedir.split('/')[3]
pokemon_name = filedir.split('/')[-1]
if pokemon_name.startswith('unown_'):
index = filedir.find(pokemon_name)
if index != -1: