summaryrefslogtreecommitdiff
path: root/gfx.py
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-08-31 20:38:03 -0400
committeryenatch <yenatch@gmail.com>2015-08-31 20:39:30 -0400
commit62596e14c6ab288f09be9eee04f2efd7e11dfa5a (patch)
tree95b14ed021dec0d0295bc645479795a978a7eafb /gfx.py
parent682fc3ee5c816c60f6b4f34182093e66b77c6584 (diff)
Fix reading directory names in gfx.py.
Diffstat (limited to 'gfx.py')
-rw-r--r--gfx.py2
1 files changed, 1 insertions, 1 deletions
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: