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.

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

conf yaml storage, cfme_tests/conf/

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

datafile storage, cfme_tests/data/

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

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

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

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

log storage, cfme_tests/log/

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

The project root, cfme_tests/

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

interactive scripts’ data, cfme_tests/scripts/data

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

interactive scripts, cfme_tests/scripts/

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

jinja2 templates, use with jinja2.FileSystemLoader