@@ -0,0 +1,2663 @@
+#!/usr/bin/python3%0A# -*- coding: UTF-8 -*-%0A%0A%22%22%22 Author:  Ricardo Silva Veloso (Ricvelozo)%0A    Website: http://ricvelozo.blogspot.com/%0A%0A%22%22%22%0A%0Aimport os%0Aimport re%0Aimport sys%0A%0Aclass Blend_file:%0A    @staticmethod%0A    def extract(executable_url):%0A        blend_dir, exe_name = os.path.split(executable_url)%0A        blend_name = exe_name%5B0:-3%5D + %22blend%22%0A%0A        try:%0A            executable_file = open(executable_url, %22rb%22)%0A            print(%22Processing %5C%22%22 + exe_name + %22%5C%22...%22)%0A%0A            line = b%22%22%0A            while True:%0A                line_temp = executable_file.read(1024)%0A                if line_temp == b%22%22:%0A                    print(%22The file %5C%22%22 + exe_name + %22%5C%22 does not have a %22 %5C%0A                          %22.blend file%22)%0A                    break%0A%0A                line = line + line_temp%0A                pos = re.search(b%22BLENDER_%5Bv%7CV%5D%5B0-9%5D%7B3%7DREND%22, line)%0A                if not pos == None:%0A                    try:%0A                        blend_file = open(os.path.join(blend_dir, blend_name),%0A                                          %22wb%22)%0A                        pos = pos.start()%0A%0A                        print(%22Extracting %5C%22%22 + exe_name + %22%5C%22...%22)%0A                        blend_file.write(line%5Bpos:len(line)%5D)%0A%0A                        while True:%0A                            line_temp = executable_file.read(1024)%0A                            if line_temp == b%22%22:%0A                                break%0A%0A                            blend_file.write(line_temp)%0A%0A                        blend_file.close()%0A                        print(%22.blend file extracted: %5C%22%22 + blend_name + %22%5C%22%22)%0A%0A                    except IOError:%0A                        print(%22Could not create the .blend file %5C%22%22 +%0A                              blend_name + %22%5C%22!%22)%0A%0A                    break%0A                %0A                line = line_temp%5B-32:len(line_temp)%5D%0A%0A        except IOError:%0A            print(%22Could not open the file %5C%22%22 + exe_name + %22%5C%22%22)%0A            return False%0A%0A%0Aif len(sys.argv) %3E 1:%0A    args = sys.argv%5B1:len(sys.argv)%5D%0A%0A    # Extract the .blend file(s)%0A    for arg in args:%0A        Blend_file.extract(arg)%0A%0Aelse:%0A    while True:%0A        executable_url = input(%22Enter the URL of the executable file, or %22 %5C%0A                               %22ENTER to exit:%5Cn%3E%3E%3E %22)%0A%0A        # Empty line on Unix-like and Windows, respectively%0A        if len(executable_url) == 0 or executable_url == '%5Cr':%0A            break%0A%0A        else:%0A            # Remove the '%5Cr' character on Windows%0A            if executable_url%5B-1%5D == '%5Cr':%0A                executable_url = executable_url%5B0:-1%5D%0A%0A            # Extract the .blend file%0A            Blend_file.extract(executable_url)%0A

Add extract-blend.py