From 62596e14c6ab288f09be9eee04f2efd7e11dfa5a Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 31 Aug 2015 20:38:03 -0400 Subject: [PATCH] Fix reading directory names in gfx.py. --- gfx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx.py b/gfx.py index ec5bbb9d8..d69eaa42f 100644 --- a/gfx.py +++ b/gfx.py @@ -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: