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)