|
@@ -15,13 +15,14 @@ sys.path.append(f"{DIR}/../common") |
|
|
from modulePaths import * |
|
|
from modulePaths import * |
|
|
from readFile import * |
|
|
from readFile import * |
|
|
from readKeyValue import * |
|
|
from readKeyValue import * |
|
|
|
|
|
from shortenName import * |
|
|
|
|
|
|
|
|
(PATH, MODULE) = modulePaths(sys.argv[1]) |
|
|
(PATH, MODULE) = modulePaths(sys.argv[1]) |
|
|
|
|
|
|
|
|
print(f"Генерируем платформу для модуля '{PATH}'...") |
|
|
|
|
|
|
|
|
print(f"Генерируем платформу-5 для модуля '{PATH}'...") |
|
|
|
|
|
|
|
|
FILE_IN = f"{DIR}/../../../Modules/{PATH}/{MODULE}.yml" |
|
|
FILE_IN = f"{DIR}/../../../Modules/{PATH}/{MODULE}.yml" |
|
|
DIR_OUT = f"{DIR}/../../../Modules/{PATH}/src/" |
|
|
DIR_OUT = f"{DIR}/../../../Modules/{PATH}/src/" |
|
|
FILE_OUT = os.path.join(DIR_OUT, f"{MODULE}.Generated.swift") |
|
|
FILE_OUT = os.path.join(DIR_OUT, f"{MODULE}.Generated.swift") |
|
|
|
|
|
|
|
|
process(DIR, DIR_OUT, FILE_IN, FILE_OUT, MODULE, PATH, readFile, readKeyValue) |
|
|
|
|
|
|
|
|
process(DIR, DIR_OUT, FILE_IN, FILE_OUT, MODULE, PATH, readFile, readKeyValue, shortenName) |