Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion swl_pack.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys, json
from pydofus.swl import SWLReader, InvalidSWLFile
from pydofus.swl import SWLBuilder

# python swl_pack.py file.swf (require file.json)
# file output: file.swl
Expand Down
2 changes: 1 addition & 1 deletion swl_unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

swl = SWLReader(swl_input)
swf_output.write(swl.SWF)
swl_data = {'version':swl_reader.version, 'frame_rate':swl_reader.frame_rate, 'classes':swl_reader.classes}
swl_data = {'version': swl.version, 'frame_rate': swl.frame_rate, 'classes': swl.classes}
json.dump(swl_data, json_output, indent=4)

swl_input.close()
Expand Down