1 2 3if __name__ == '__main__': 4 import sys, os, distutils.util 5 build_lib = 'build/lib' 6 build_lib_ext = os.path.join('build', 'lib.{}-{}.{}'.format(distutils.util.get_platform(), *sys.version_info)) 7 sys.path.insert(0, build_lib) 8 sys.path.insert(0, build_lib_ext) 9 import test_yaml_ext, test_appliance 10 test_appliance.run(test_yaml_ext) 11 12