Skip to content

Commit

Permalink
Fix TWBT file replacement handling (fixes #159)
Browse files Browse the repository at this point in the history
Bump version number to 0.13b
  • Loading branch information
Pidgeot committed Sep 17, 2018
1 parent 6ea5e60 commit cc0f8dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions core/graphics.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ def install_graphics(pack):
# TwbT file replacements
if 'TWBT' in lnp.settings.printmode:
for folder in ['graphics', 'objects']:
twbt_folder = paths.get(folder, '..', 'twbt_'+folder)
target_folder = paths.get(folder)
twbt_folder = paths.get('graphics', pack, 'raw', 'twbt_'+folder)
target_folder = paths.get('df', 'raw', folder)

for path, _, files in os.walk(twbt_folder):
for f in files:
twbt_f = os.path.join(path, f)
target_f = twbt_f.replace(twbt_folder, target_folder)
target_f = os.path.join(target_folder, os.path.relpath(
twbt_f, twbt_folder))
shutil.copyfile(twbt_f, target_f)

except:
Expand Down
2 changes: 1 addition & 1 deletion core/lnp.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from .json_config import JSONConfiguration

VERSION = '0.13a'
VERSION = '0.13b'

# pylint:disable=too-many-instance-attributes

Expand Down

0 comments on commit cc0f8dc

Please sign in to comment.