mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-11 16:06:38 +02:00
fix action (directory was missing - needs to be created automatically now)
This commit is contained in:
parent
b67cd033d2
commit
11fdb4c822
1 changed files with 4 additions and 0 deletions
|
@ -2,6 +2,8 @@ import re
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
def convert2Header(inFile):
|
def convert2Header(inFile):
|
||||||
fileType = inFile.split(".")[1]
|
fileType = inFile.split(".")[1]
|
||||||
define = inFile.split(".")[0].upper()
|
define = inFile.split(".")[0].upper()
|
||||||
|
@ -12,8 +14,10 @@ def convert2Header(inFile):
|
||||||
print("ok")
|
print("ok")
|
||||||
outName = "html/" + "h/" + inFileVarName + ".h"
|
outName = "html/" + "h/" + inFileVarName + ".h"
|
||||||
inFile = "html/" + inFile
|
inFile = "html/" + inFile
|
||||||
|
Path("html/h").mkdir(exist_ok=True)
|
||||||
else:
|
else:
|
||||||
outName = "h/" + inFileVarName + ".h"
|
outName = "h/" + inFileVarName + ".h"
|
||||||
|
Path("h").mkdir(exist_ok=True)
|
||||||
|
|
||||||
f = open(inFile, "r")
|
f = open(inFile, "r")
|
||||||
data = f.read().replace('\n', '')
|
data = f.read().replace('\n', '')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue