def get_work_directory(config):
    """Return the aiida work directory to use."""
    if config.getoption("lammps_workdir") is not None:
        return config.getoption("lammps_workdir")
    return None