ObjToSchematic/tools/run-headless.ts

15 lines
450 B
TypeScript
Raw Normal View History

import { Logger, LOG_MAJOR } from '../src/util/log_util';
2022-09-12 08:07:42 +08:00
import { AppPaths, PathUtil } from '../src/util/path_util';
import { runHeadless } from './headless';
import { headlessConfig } from './headless-config';
void async function main() {
AppPaths.Get.setBaseDir(PathUtil.join(__dirname, '../..'));
Logger.Get.enableLogToFile();
Logger.Get.initLogFile('headless');
runHeadless(headlessConfig);
LOG_MAJOR('\nFinished!');
}();