#!/usr/bin/env python3 # # # # import sys import os from pathlib import Path import struct import json sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "script-resources")) import factorio.property_tree with open(Path.home() / ".factorio" / "mods" / "mod-settings.dat", "rb") as f: version_main: int version_major: int version_minor: int version_developer: int version_main, version_major, version_minor, version_developer = struct.unpack( "