I have a python script what works/runs most of the time but sometimes it makes Blender "Not Responding" (I closed the program after ~20 mins). What is weird that it looks like it's not even starting, because there is nothing on the Console though my script starts with a print:
import bpy import json import csv import math import struct import imghdr import os import subprocess from enum import Enum class RuncodeEnum(Enum): GRAPHVIZ_FILES = 0 WAVEFRONT_OBJECT = 1 EXTRACT_COORDINATES = 2 GENERATE_CONNNECTIONS = 3 REINITIALIZE_SCENE = 4 IMPORT_OBJ_FILE = 5 TEST = 99 ... RUNCODE = RuncodeEnum.TEST if __name__ == '__main__': print("Starting script, RUNCODE is '" + RUNCODE.name + "'...")
(Beside these there are a few constants and methods, likely it's not relevant.)
Any good advice what am I might doing wrong?