dx2cg: Allow usage as Python module

e.g.
from dx2cg.swapper import process_shader
cg_shader = process_shader(text)
This commit is contained in:
CakeLancelot 2024-02-13 01:40:07 -06:00
parent 4196766a2b
commit 99c80c9c7b
3 changed files with 2 additions and 2 deletions

0
dx2cg/__init__.py Normal file
View File

View File

@ -3,7 +3,7 @@
import os
import sys
from swapper import process
from .swapper import process
def process_file(filename, suffix):
dot = filename.rfind(".")

View File

@ -5,7 +5,7 @@
import re
import sys
from disassembler import disassemble
from .disassembler import disassemble
tabs = 3
def indent(block):