mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix reading directory names in gfx.py.
This commit is contained in:
parent
682fc3ee5c
commit
62596e14c6
2
gfx.py
2
gfx.py
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user