Make extract_templeos.py executable

This commit is contained in:
minexew committed 2017-01-22 20:59:44 +01:00
1 parent 29d7a19d2b
commit ef09ef818b
1 file changed
+3 -1
Regular → Executable
+3 -1
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import errno import errno
import isoparser import isoparser
import os import os
@@ -34,7 +36,7 @@ def decompress_all_files_in(path):
decompress_all_files_in(full_path) decompress_all_files_in(full_path)
elif full_path.endswith('.Z'): elif full_path.endswith('.Z'):
decompressed_path = full_path[0:len(full_path)-2] 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) os.remove(full_path)
# Extract TempleOS disk tree # Extract TempleOS disk tree