with `Form.LoadProps(os.path.join(os.path.dirname(os.path.abspath(__file__)), "Unit1.pydfm"))` , there is an issue when the path contains unicode. 