INNER CODE UNIT · Python

path_out

intermine/intermine · config/lib/install_intermine.py:74

            path_out = path_in[:-3]
            with open(path_out, "w") as f_out:
                f_out.write(
                    "# FILE AUTOMATICALLY GENERATED FROM "
                    f"{properties_in}. DO NOT EDIT!\n"
                )
                with open(path_in) as f_in:
                    for line in f_in:
                        for key, value in replacement_dict.items():
                            line = line.replace(f"@@{key}@@", value)
                        f_out.write(line)

            print(f"Written {path_out}")

    def copy_test_properties(self) -> None:
        self.copy_properties("ci.properties", "intermine-test.properties")
        self.copy_properties("testmodel.properties", "testmodel.properties")
        self.copy_properties(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…