"""Util functions for development tools.""" import os def source(file_name): """Export variables to environment from .env file. Args: file_name (str): filename with variables. """ with open(file_name) as file: for line in file.readlines(): parts = line.split('=') if len(parts) == 2: variable, value = parts os.environ[variable.strip()] = value.strip()