From 5d7d77e8ad6c2f1caf9687c1cbff5a268ff0069d Mon Sep 17 00:00:00 2001 From: miguelpmachado Date: Thu, 25 Aug 2016 15:09:25 +0100 Subject: [PATCH] Fix bug (Save CPU information) --- INNUca.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INNUca.py b/INNUca.py index 00c96f7..6c9aea1 100755 --- a/INNUca.py +++ b/INNUca.py @@ -74,7 +74,7 @@ def main(): utils.scriptVersionGit(version, os.getcwd(), script_path) # Save CPU information - with open(os.path.join(outdir, 'cpu_information.' + time_str + '.cpu.txt')) as reader: + with open(os.path.join(outdir, 'cpu_information.' + time_str + '.cpu.txt'), 'wt') as reader: command = ['cat', '/proc/cpuinfo'] run_successfully, stdout, stderr = utils.runCommandPopenCommunicate(command, False, None) reader.write(stdout)