Environment (fixie.environ)

Custom environment handling tools for fixie.

fixie.environ.context()[source]

A context manager for entering and leaving the fixie environment safely. This context manager is reentrant and will only be executed if it hasn’t already been entered.

fixie.environ.csv_to_list(x)[source]

Converts a comma separated string to a list of strings.

fixie.environ.expand_and_make_dir(x)[source]

Expands a variable that represents a directory, and ensures that the directory actually exists.

fixie.environ.expand_file_and_mkdirs(x)[source]

Expands a variable that represents a file, and ensures that the directory it lives in actually exists.

fixie.environ.fixie_config_dir()[source]

Ensures and returns the $FIXIE_CONFIG_DIR

fixie.environ.fixie_data_dir()[source]

Ensures and returns the $FIXIE_DATA_DIR

fixie.environ.fixie_detype_env()[source]

Returns a detyped version of the environment containing only the fixie environment variables.

fixie.environ.fixie_envvar_names()[source]

Returns the fixie environment variable names as a set of str.

fixie.environ.fixie_job_aliases_file()[source]

Ensures and returns the $FIXIE_JOB_ALIASES_FILE

fixie.environ.fixie_jobid_file()[source]

Ensures and returns the $FIXIE_JOBID_FILE

fixie.environ.fixie_jobs_dir()[source]

Ensures and returns the $FIXIE_JOBS_DIR

fixie.environ.fixie_logfile()[source]

Ensures and returns the $FIXIE_LOGFILE

fixie.environ.fixie_paths_dir()[source]

Ensures and returns the $FIXIE_PATHS_DIR

fixie.environ.fixie_sims_dir()[source]

Ensures and returns the $FIXIE_SIMS_DIR

fixie.environ.is_dict_str_str_or_none(x)[source]

Checks if x is a mutable mapping from strings to strings or None

fixie.environ.list_to_csv(x)[source]

Converts a list of str to a comma-separated string.

fixie.environ.setup()[source]
fixie.environ.teardown()[source]