@preserve_value(sys, 'dont_write_bytecode')
def _load_module_no_bytecode(filename, module_file, module_file_path, py_source_description):
 sys.dont_write_bytecode = 1
 new_module = imp.load_module(os.path.splitext(filename)[0].replace('-', '_'), module_file, module_file_path, py_source_description)
 return new_module

@ preserve_value ( sys , 'dont_write_bytecode' ) def _load_module_no_bytecode ( filename , module_file , module_file_path , py_source_description ) : sys . dont_write_bytecode = 1 new_module = imp . load_module ( os . path . splitext ( filename ) [ 0 ] . replace ( '-' , '_' ) , module_file , module_file_path , py_source_description ) return new_module
helper function to load a module while setting sys .