taegwon

app.js real final

......@@ -560,7 +560,7 @@ async function intersection()
{
const spawn = await require('child_process').spawn;
for (var i = 0, j = 0; i < 3; i += 2, j++) {
var result = await spawn('python', ['/home/ec2-user/menu_recommand_webpage/CHATBOT/fileread_practice.py', directory[i][Number(choosen[i]) - 1], directory[i + 1][Number(choosen[i + 1]) - 1], save_file_name[j]]);
var result = await spawn('python', ['CHATBOT/fileread_practice.py', directory[i][Number(choosen[i]) - 1], directory[i + 1][Number(choosen[i + 1]) - 1], save_file_name[j]]);
await result.stdout.on('data', function (data) {
console.log(data.toString());
});
......@@ -568,14 +568,14 @@ async function intersection()
console.log(data.toString());
});
}
result = await spawn('python', ['/home/ec2-user/menu_recommand_webpage/CHATBOT/fileread_practice.py', save_file_name[0], save_file_name[1], save_file_name[2]]);
result = await spawn('python', ['CHATBOT/fileread_practice.py', save_file_name[0], save_file_name[1], save_file_name[2]]);
result.stdout.on('data', function (data) {
console.log(data.toString());
});
await result.stderr.on('data', function (data) {
console.log(data.toString());
});
result = await spawn('python', ['/home/ec2-user/menu_recommand_webpage/CHATBOT/fileread_practice.py', save_file_name[2], directory[4][Number(choosen[4]) - 1], save_file_name[3]]);
result = await spawn('python', ['CHATBOT/fileread_practice.py', save_file_name[2], directory[4][Number(choosen[4]) - 1], save_file_name[3]]);
result.stdout.on('data', function (data) {
console.log(data.toString());
});
......