[Durian-svn] [3193] utility to uncompress blend files

campbell institute at blender.org
Tue May 11 19:25:05 CEST 2010


Revision: 3193
          https://blenderinstitute.dyndns.org/durian-svn/?do=log&project=durian&path=/&rev=3193
Author:   campbell
Date:     2010-05-11 19:25:05 +0200 (Tue, 11 May 2010)
Log Message:
-----------
utility to uncompress blend files

Added Paths:
-----------
    pro/scripts/utilities/uncompress_blend_files.py

Added: pro/scripts/utilities/uncompress_blend_files.py
===================================================================
--- pro/scripts/utilities/uncompress_blend_files.py	                        (rev 0)
+++ pro/scripts/utilities/uncompress_blend_files.py	2010-05-11 17:25:05 UTC (rev 3193)
@@ -0,0 +1,12 @@
+import os
+os.system('file `find . -name "*.blend" | sort` | grep gzip > /tmp/foo.txt')
+f = open("/tmp/foo.txt", 'r')
+for l in f.readlines():
+    l = l.split()
+    if l:
+        l = l[0].split(":")[0]
+        print(l)
+        os.system('mv ' + l + ' ' + l + '.gz')
+        os.system('gunzip ' + l + '.gz')
+
+os.system('rm /tmp/foo.txt')
\ No newline at end of file


Property changes on: pro/scripts/utilities/uncompress_blend_files.py
___________________________________________________________________
Added: svn:executable
   + *



More information about the Durian-svn mailing list