diff --git a/apps/runner/runner.py b/apps/runner/runner.py index 1eae3946..bc4dffa7 100644 --- a/apps/runner/runner.py +++ b/apps/runner/runner.py @@ -173,8 +173,10 @@ def determine_experiment_file_type(filepath: str): filetype = ExperimentType.UNKNOWN if 'Python script' in rawfiletype or 'python3' in rawfiletype: filetype = ExperimentType.PYTHON - elif 'Zip archive data' in rawfiletype: - # check for META-INF/MANIFEST.MF in file + elif 'ELF 64-bit LSB' in rawfiletype: + filetype = ExperimentType.C + else: + # check if it is a jar file, they can have multiple rawfiletypes try: file = open(filepath, "r") contents = file.read() @@ -184,8 +186,6 @@ def determine_experiment_file_type(filepath: str): except FileNotFoundError as e: explogger.error(f"{filepath} could not be read to determine if it is a jar file!") raise e - elif 'ELF 64-bit LSB' in rawfiletype: - filetype = ExperimentType.C explogger.info(f"Raw Filetype: {rawfiletype}\n Filtered Filetype: {filetype.value}")