mirror of
http://shenjack.top:5100/shenjack/icalingua-python-bot.git
synced 2024-11-23 04:31:05 +08:00
啊啊啊
This commit is contained in:
parent
69da7f4f00
commit
c5b319730b
|
@ -135,9 +135,10 @@ if (run_env.from_code) {
|
|||
global.finish_trigger = finish_trigger;
|
||||
|
||||
// 读取 input.txt
|
||||
// const input_path = path.join(__dirname, "input.txt");
|
||||
// 从当前脚本的相对路径读取
|
||||
const input_path = path.join(__dirname, "input.txt");
|
||||
// 从 cli 参数里读取
|
||||
const input_path = run_env.cli_args[2];
|
||||
// const input_path = run_env.cli_args[2];
|
||||
logger.info("input_path", input_path);
|
||||
const input_data = fs.readFileSync(input_path, "utf-8");
|
||||
global.name_input = input_data;
|
||||
|
|
Loading…
Reference in New Issue
Block a user