Import cia-foundation preservation fixes #1

Open
Ember Bot wants to merge 2 commits from preservation/cia-fixes into master
pull from: preservation/cia-fixes
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 4d1bf28c65 - Show all commits

No files matched your search

Binary file not shown.
+4 -2
View File
@@ -45,8 +45,10 @@ 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.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
os.remove(full_path)
if full_path.endswith('.BIN.Z'):
subprocess.check_call(['./TOSZ', full_path, decompressed_path])
else:
subprocess.check_call(['./TOSZ', '-ascii', full_path, decompressed_path])
# Extract TempleOS disk tree
extract('', OUTPUT_DIR)