mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2024-11-24 14:31:04 +00:00
dx2cg: Allow usage as Python module
e.g. from dx2cg.swapper import process_shader cg_shader = process_shader(text)
This commit is contained in:
parent
4196766a2b
commit
99c80c9c7b
0
dx2cg/__init__.py
Normal file
0
dx2cg/__init__.py
Normal 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(".")
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
import re
|
||||
import sys
|
||||
from disassembler import disassemble
|
||||
from .disassembler import disassemble
|
||||
|
||||
tabs = 3
|
||||
def indent(block):
|
||||
|
Loading…
Reference in New Issue
Block a user