INNER CODE UNIT · Python

WEBP_MAX_BYTES

utopia-rise/godot-jvm · logo/export.py:47

WEBP_MAX_BYTES = 600 * 1024
TITLE_COLOR = (246, 247, 255, 255)
SUBTITLE_COLOR = (222, 226, 248, 255)
TITLE_FONT = 'Rubik-Bold.ttf'
TEXT_FONT = 'SourceSansPro-Semibold.ttf'

SYSTEM = platform.system()  # 'Windows', 'Linux' or 'Darwin'


# ------------------------------------------------------------------ dependencies

def find_inkscape():
    """Path to the Inkscape executable, or None. Real install locations come first because
    package-manager shims on PATH (Chocolatey's, for one) return before the export is written."""
    candidates = []
    if SYSTEM == 'Windows':
        for program_files in (os.environ.get('ProgramFiles'), os.environ.get('ProgramFiles(x86)')):
            if program_files:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…