1import sys 2 3import os 4import tempfile 5 6 7def init_path(): 8 # Append script path at end to prevent conflicts in case of frozen interpreter 9 sys.path.append(sys.path.pop(0)) 10