cfme.utils.path module

Project path helpers

Contains py.path.local objects for accessing common project locations.

Paths rendered below will be different in your local environment.

cfme.utils.path.conf_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/conf')

conf yaml storage, cfme_tests/conf/

cfme.utils.path.data_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data')

datafile storage, cfme_tests/data/

cfme.utils.path.docs_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/docs')

doc root, where these file came from! cfme_tests/docs/

cfme.utils.path.get_rel_path(absolute_path_str)[source]

Get a relative path for object in the project root

Parameters:absolute_path_str – An absolute path to a file anywhere under project_path

Note

This will be a no-op for files that are not in project_path

cfme.utils.path.log_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/log')

log storage, cfme_tests/log/

cfme.utils.path.middleware_resources_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data/resources/middleware')

middleware provider resource files path, cfme_tests/data/resources/middleware

cfme.utils.path.orchestration_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data/orchestration')

orchestration datafile storage, cfme_tests/data/orchestration

cfme.utils.path.patches_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data/patches')

patch files (diffs)

cfme.utils.path.project_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0')

The project root, cfme_tests/

cfme.utils.path.resources_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data/resources')

resource files root directory, cfme_tests/data/resources

cfme.utils.path.results_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/results')

results path for performance tests, cfme_tests/results/

cfme.utils.path.scripts_data_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/scripts/data')

interactive scripts’ data, cfme_tests/scripts/data

cfme.utils.path.scripts_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/scripts')

interactive scripts, cfme_tests/scripts/

cfme.utils.path.template_path = local('/home/docs/checkouts/readthedocs.org/user_builds/cfme-tests/checkouts/17.14.0/data/templates')

jinja2 templates, use with jinja2.FileSystemLoader