INNER CODE UNIT · Python

__post_init__

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

    def __post_init__(self) -> None:
        python_lib_dir = os.path.dirname(os.path.realpath(__file__))
        self.checkout = os.path.join(python_lib_dir, "..", "..")
        self.psql_host = self.getenv("PSQL_HOST")
        self.psql_user = self.getenv("PSQL_USER")
        self.psql_pwd = self.getenv("PSQL_PWD")

    def getenv(self, name: str) -> str:
        value = os.getenv(name)
        if value is None:
            print(f"You must set the environment variable {name}")
            sys.exit(EXIT_USER)

        return value

    def build(self) -> None:
        self.create_gradle_properties()
        self.create_gradle_wrapper_properties()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…