def _write_jpy_config(target_dir=None, install_dir=None):
if not target_dir:<EOL><INDENT>target_dir = _build_dir()<EOL><DEDENT>args = [sys.executable,<EOL>os.path.join(target_dir, '<STR_LIT>'),<EOL>'<STR_LIT>', jvm_dll_file,<EOL>'<STR_LIT>', jdk_home_dir,<EOL>'<STR_LIT>', '<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>']<EOL>if install_dir:<EOL><INDENT>args.append('<STR_LIT>')<EOL>args.append(install_dir)<EOL><DEDENT>log.info('<STR_LIT>' % (target_dir, install_dir))<EOL>return subprocess.call(args)<EOL>
Write out a well-formed jpyconfig.properties file for easier Java
integration in a given location.