fix: [python version] changed generate_file_objects.py's execution to python3

pull/3470/head
iglocska 2018-07-06 11:24:16 +02:00
parent 8d567782d9
commit fc40bee6ee
1 changed files with 1 additions and 1 deletions

View File

@ -3025,7 +3025,7 @@ class Attribute extends AppModel {
public function advancedAddMalwareSample($event_id, $attribute_settings, $filename, $tmpfile) {
$execRetval = '';
$execOutput = array();
$result = shell_exec('python ' . APP . 'files/scripts/generate_file_objects.py -p ' . $tmpfile->path);
$result = shell_exec('python3 ' . APP . 'files/scripts/generate_file_objects.py -p ' . $tmpfile->path);
if (!empty($result)) {
$result = json_decode($result, true);
if (isset($result['objects'])) {