From ef09ef818b97e5934e178c2cdaf9d09dc16972b6 Mon Sep 17 00:00:00 2001 From: minexew Date: Sun, 22 Jan 2017 20:59:44 +0100 Subject: [PATCH] Make extract_templeos.py executable --- extract_templeos.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 extract_templeos.py diff --git a/extract_templeos.py b/extract_templeos.py old mode 100644 new mode 100755 index d549b30..1457b86 --- a/extract_templeos.py +++ b/extract_templeos.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python + import errno import isoparser import os @@ -34,7 +36,7 @@ def decompress_all_files_in(path): decompress_all_files_in(full_path) elif full_path.endswith('.Z'): decompressed_path = full_path[0:len(full_path)-2] - subprocess.call(['./TOSZ', '-ascii', full_path, decompressed_path]) + subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path]) os.remove(full_path) # Extract TempleOS disk tree