diff options
author | yenatch <yenatch@gmail.com> | 2015-08-31 20:38:03 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2015-08-31 20:39:30 -0400 |
commit | 62596e14c6ab288f09be9eee04f2efd7e11dfa5a (patch) | |
tree | 95b14ed021dec0d0295bc645479795a978a7eafb /gfx.py | |
parent | 682fc3ee5c816c60f6b4f34182093e66b77c6584 (diff) |
Fix reading directory names in gfx.py.
Diffstat (limited to 'gfx.py')
-rw-r--r-- | gfx.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: |