diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 342438e..0000000 --- a/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -# Files to be ignored by Git. - -.git - -# Python auto-generated files and folders. -/__pycache__ -Dump - -# System files. -.DS_Store -Thumb.db diff --git a/Compressed b/Compressed deleted file mode 100644 index bdfce82..0000000 Binary files a/Compressed and /dev/null differ diff --git a/Expanded b/Expanded deleted file mode 100644 index 7aaeced..0000000 Binary files a/Expanded and /dev/null differ diff --git a/README.md b/README.md deleted file mode 100644 index 88cb5e4..0000000 --- a/README.md +++ /dev/null @@ -1,22 +0,0 @@ -## About this repository - -This repository contains Python tools for dealing with compressed MacOS resources. - -It's also an attempt to document the undocumented “dcmp” mechanism in System 7 -including all required data structures and compression algorithms. - -For the moment being, the code accepts only binary files as input. This can be -easily updated to process data from streams and memory-based arrays. - -The following algorithms are currently supported: -- GreggyBits - -Requires Python 3. - -### Usage: - python ResDecompress.py [input file] - -If no input file was specified, the "Compressed" file resided in the same folder -will be processed by default. - -At the end, a "Dump" file will be generated containing decompressed data. diff --git a/__init__.py b/__init__.py deleted file mode 100644 index b74d8a5..0000000 --- a/__init__.py +++ /dev/null @@ -1 +0,0 @@ -from .ResDecompress import GetEncoding, DecompressResource, CompressResource diff --git a/GreggBits.py b/macresources/GreggBits.py similarity index 100% rename from GreggBits.py rename to macresources/GreggBits.py diff --git a/ResDecompress.py b/macresources/compression.py similarity index 100% rename from ResDecompress.py rename to macresources/compression.py diff --git a/test_everything.py b/test_compress.py similarity index 84% rename from test_everything.py rename to test_compress.py index 580c550..fb3e5ea 100644 --- a/test_everything.py +++ b/test_compress.py @@ -1,4 +1,4 @@ -from ResDecompress import GetEncoding, DecompressResource, CompressResource +from .macresources.compression import GetEncoding, DecompressResource, CompressResource def compress_then_extract(dat, encoding): a = CompressResource(dat, encoding);