Fix Version/s: None
Team:Data Access and Database
When loading the Policy, we need to replicate the behavior of pex_policy's GetDefaultPolicy.
we need to load default policy from certain locations, and then override parameters with more local policies. Order, highest to lowest priority is:
For the in-code ones, it should only need something like: os.path.join(utils.getPackageDir(packageName), "policy", policyFilename)
We may need a default policy somewhere else (e.g. a tests subdirectory). It could be done with an optional dirName="policy" argument. That would just be a helper method to find in-code policies.
Also need a loadOverride() method that takes a YAML file and merges it on top of an existing policy, with what is read in overriding what was there before.
We don't think we need inclusion semantics.
(inclusion semantics is one of the features of pex_policy was that you could put strings starting with "@" in a paf file and have it include a sub-policy from another file.)