37 lines
822 B
Python
37 lines
822 B
Python
import os
|
|
import sys
|
|
import glob
|
|
|
|
|
|
def CreateReadme():
|
|
print("TODO")
|
|
|
|
def compileClasses(root):
|
|
for subFolder in [ "capClasses", "stageClasses"]:
|
|
path = os.path.join(root, subFolder)
|
|
for name in glob.glob(f"{path}/*.lua"):
|
|
with open(path, 'r') as file:
|
|
|
|
|
|
def compile(root, target):
|
|
compiled = ""
|
|
for filename in Order:
|
|
path = os.path.join(root, filename)
|
|
with open(path,'r') as file:
|
|
fileContents = file.read()
|
|
compiled += fileContents
|
|
print(path)
|
|
|
|
with open(target, "w") as targetFile:
|
|
targetFile.write(compiled)
|
|
|
|
|
|
if __name__ == "__main__" :
|
|
args = sys.argv[1:]
|
|
root = args[0]
|
|
target = args[1]
|
|
|
|
print(f"Source: {root}")
|
|
print(f"target: {target}")
|
|
|
|
compile(root, target) |