This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.job_execution.setup

"""Utilities to help job and tool code setup jobs."""
import os

from galaxy.util import safe_makedirs

[docs]def ensure_configs_directory(work_dir): configs_dir = os.path.join(work_dir, "configs") if not os.path.exists(configs_dir): safe_makedirs(configs_dir) return configs_dir