GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — AppliedOverInternet/reorder.py at main · iTrooz/AppliedOverInternet Expand file tree/ Copy pathreorder.pyMore file actions 24 lines (18 loc) · 729 Bytes / Copy pathreorder.pyFile metadata and controls24 lines (18 loc) · 729 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 import os import json import sys from shutil import copyfile if len(sys.argv) != 2: print(f"Syntax: {sys.argv[0]} <minecraft folder>") sys.exit(1) INPUT_DIR = sys.argv[1] OUTPUT_DIR = "textures" with open(os.path.join(INPUT_DIR, "icon-exports-metadata.json"), "r") as f: metadata = json.loads(f.read())["meta"] EXPORT_DIR_NAME = "icon-exports-x32" # TODO is it always that name ? for item_meta in metadata: path = os.path.join(INPUT_DIR, EXPORT_DIR_NAME, item_meta["image_file"]) if os.path.isfile(path): namespace, name = item_meta["id"].split(":") os.makedirs(os.path.join(OUTPUT_DIR, namespace), exist_ok=True) copyfile(path, os.path.join(OUTPUT_DIR, namespace, name+".png")) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |