X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=functest%2Futils%2Fenv.py;h=2fb766d3275954ce4cff7dc4b597fc4fc5b62d44;hb=3900d3c3efa75e0a382183154c534e67b199152c;hp=3724ec998bab90d919d2324637e995960aa5c04c;hpb=efbe74c4cc1b6b6982e9e13950319f690541d6a3;p=functest.git diff --git a/functest/utils/env.py b/functest/utils/env.py index 3724ec998..2fb766d32 100644 --- a/functest/utils/env.py +++ b/functest/utils/env.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import pkg_resources import os import re @@ -16,8 +17,9 @@ default_envs = { 'BUILD_TAG': None, 'OS_ENDPOINT_TYPE': None, 'OS_AUTH_URL': None, - 'CONFIG_FUNCTEST_YAML': os.path.normpath(os.path.join(os.path.dirname( - os.path.abspath(__file__)), '../ci/config_functest.yaml')) + 'CONFIG_FUNCTEST_YAML': pkg_resources.resource_filename( + 'functest', 'ci/config_functest.yaml'), + 'OS_INSECURE': '' }