GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — AppliedOverInternet/reorder.py at main · iTrooz/AppliedOverInternet

Expand file tree

/

reorder.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
24 lines (18 loc) · 729 Bytes
/

reorder.py

Copy path

File metadata and controls

24 lines (18 loc) · 729 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.