mkdirs
This commit is contained in:
@@ -22,7 +22,7 @@ function sceneRender()
|
||||
camera.bottom = screenGetHeight()
|
||||
camera.right = screenGetWidth()
|
||||
|
||||
width, height = textMeasure(text)
|
||||
width, height = textMeasure(text)1
|
||||
x = (screenGetWidth() - width)
|
||||
x = math.sin(TIME.time * 2) * (x / 2) + (x / 2)
|
||||
|
||||
|
||||
@@ -100,5 +100,6 @@ for line in luaScript.splitlines():
|
||||
outHeader = outHeader.rstrip(" \\\n") + "\n" # Remove last backslash and add newline
|
||||
|
||||
# Write to output file
|
||||
os.makedirs(os.path.dirname(args.output), exist_ok=True)
|
||||
with open(args.output, "w", encoding="utf-8") as outFile:
|
||||
outFile.write(outHeader)
|
||||
Reference in New Issue
Block a user