mirror of
https://github.com/OpenFusionProject/scripts.git
synced 2024-11-21 22:00: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 os
|
||||||
import sys
|
import sys
|
||||||
from swapper import process
|
from .swapper import process
|
||||||
|
|
||||||
def process_file(filename, suffix):
|
def process_file(filename, suffix):
|
||||||
dot = filename.rfind(".")
|
dot = filename.rfind(".")
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from disassembler import disassemble
|
from .disassembler import disassemble
|
||||||
|
|
||||||
tabs = 3
|
tabs = 3
|
||||||
def indent(block):
|
def indent(block):
|
||||||
|
Loading…
Reference in New Issue
Block a user