Finish renaming package
This commit is contained in:
parent
56d16589e1
commit
ea2048c509
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import resourcefork
|
||||
import macresources
|
||||
import sys
|
||||
|
||||
parser = argparse.ArgumentParser(description='''
|
||||
|
@ -19,9 +19,9 @@ parser.add_argument('-useDF', action='store_true', help='ignored: data fork is a
|
|||
args = parser.parse_args()
|
||||
|
||||
with open(args.resourceFile, 'rb') as f:
|
||||
resources = resourcefork.parse_file(f.read())
|
||||
resources = macresources.parse_file(f.read())
|
||||
|
||||
try:
|
||||
sys.stdout.buffer.write(resourcefork.make_rez_code(resources, ascii_clean=args.ascii))
|
||||
sys.stdout.buffer.write(macresources.make_rez_code(resources, ascii_clean=args.ascii))
|
||||
except BrokenPipeError:
|
||||
pass # like we get when we pipe into head
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import resourcefork
|
||||
import macresources
|
||||
|
||||
parser = argparse.ArgumentParser(description='''
|
||||
Compile legacy Mac resources from a subset of the Rez language. Only
|
||||
|
@ -20,7 +20,7 @@ args = parser.parse_args()
|
|||
resources = []
|
||||
for in_path in args.rezFile:
|
||||
with open(in_path, 'rb') as f:
|
||||
resources.extend(resourcefork.parse_rez_code(f.read()))
|
||||
resources.extend(macresources.parse_rez_code(f.read()))
|
||||
|
||||
with open(args.o, 'wb') as f:
|
||||
f.write(resourcefork.make_file(resources))
|
||||
f.write(macresources.make_file(resources))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from resourcefork import *
|
||||
from macresources import *
|
||||
|
||||
RF = b'\x00\x00\x01\x00\x00\x00\x01\x08\x00\x00\x00\x08\x00\x00\x00;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x04\x124Vx\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1c\x002\x00\x00elmo\x00\x00\x00\n\x00{\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x08lamename'
|
||||
RZF = b"""
|
||||
|
|
Loading…
Reference in New Issue