Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Related to issue duo-labs#197 

Changed pkg_resources to importlib for import config files
  • Loading branch information
ahsansmir committed Oct 7, 2021
1 parent 56e7678 commit f5acec9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parliament/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import yaml

# On initialization, load the IAM data
# pkg_resources to. importlib
iam_definition_path = resources.open_text(__name__, "iam_definition.json")
iam_definition = json.load(iam_definition_path)

Expand Down

0 comments on commit f5acec9

Please sign in to comment.