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

2
gfx.py
View File

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