INNER CODE UNIT · Python
copy_test_properties
intermine/intermine · config/lib/install_intermine.py:88
def copy_test_properties(self) -> None:
self.copy_properties("ci.properties", "intermine-test.properties")
self.copy_properties("testmodel.properties", "testmodel.properties")
self.copy_properties(
"ci-bio.properties", "intermine-bio-test.properties"
)
def copy_properties(self, source_name: str, dest_name: str) -> None:
dot_intermine_dir = os.path.join(Path.home(), ".intermine")
os.makedirs(dot_intermine_dir, exist_ok=True)
source_file = os.path.join(self.checkout, "config", source_name)
dest_file = os.path.join(dot_intermine_dir, dest_name)
if os.path.exists(dest_file):
print(f"Skipping {dest_file} as it already exists")
return