mirror of
https://github.com/mon/ifstools.git
synced 2024-11-13 21:20:49 +01:00
Bugfixes and hassle free install
This commit is contained in:
parent
c7f7ab4646
commit
8c31299e1e
@ -52,7 +52,7 @@ class GenericFile(Node):
|
|||||||
tqdm_progress.update(1)
|
tqdm_progress.update(1)
|
||||||
elem = etree.SubElement(manifest, self.packed_name)
|
elem = etree.SubElement(manifest, self.packed_name)
|
||||||
elem.attrib['__type'] = '3s32'
|
elem.attrib['__type'] = '3s32'
|
||||||
data = self.load(convert_kbin = False)
|
data = self.load(convert_kbin = False, **kwargs)
|
||||||
if self.name.endswith('.xml') and not KBinXML.is_binary_xml(data):
|
if self.name.endswith('.xml') and not KBinXML.is_binary_xml(data):
|
||||||
data = KBinXML(data).to_binary()
|
data = KBinXML(data).to_binary()
|
||||||
# offset, size, timestamp
|
# offset, size, timestamp
|
||||||
|
@ -8,8 +8,8 @@ from . import MD5Folder, ImageFile, GenericFile
|
|||||||
from .ImageDecoders import cachable_formats
|
from .ImageDecoders import cachable_formats
|
||||||
|
|
||||||
class TextureList(GenericFile):
|
class TextureList(GenericFile):
|
||||||
def _load_from_filesystem(self):
|
def _load_from_filesystem(self, **kwargs):
|
||||||
raw = GenericFile._load_from_filesystem(self)
|
raw = GenericFile._load_from_filesystem(self, **kwargs)
|
||||||
k = KBinXML(raw)
|
k = KBinXML(raw)
|
||||||
# fallback to a type we can encode
|
# fallback to a type we can encode
|
||||||
for tex in k.xml_doc.iterchildren():
|
for tex in k.xml_doc.iterchildren():
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import argparse
|
import argparse
|
||||||
import os
|
import os
|
||||||
import multiprocessing # for pyinstaller fixes
|
import multiprocessing # for pyinstaller fixes
|
||||||
|
from sys import exit # exe freeze
|
||||||
try:
|
try:
|
||||||
# py 2
|
# py 2
|
||||||
input = raw_input
|
input = raw_input
|
||||||
|
@ -2,4 +2,4 @@ lxml
|
|||||||
tqdm
|
tqdm
|
||||||
pillow
|
pillow
|
||||||
future
|
future
|
||||||
kbinxml>=1.2
|
kbinxml>=1.5
|
||||||
|
Loading…
Reference in New Issue
Block a user