-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example using private auditors as a library #88
Comments
I believe it should be possible to import the private auditors directory as a path referenced from your current working directory. You can see the The importing of the private auditoring directory, as you pointed out, is done around here: parliament/parliament/policy.py Line 259 in f9a2d8e
You can try adding some print statements to see what your |
Isn't this line forcing the private auditor modules to be underneath the https://github.com/duo-labs/parliament/blob/0.4.8/parliament/policy.py#L265 |
No, because a few lines down, if a custom path is specified for the private auditors, then it sets https://github.com/duo-labs/parliament/blob/0.4.8/parliament/policy.py#L274 |
Oh duh, you're right, sorry about that. I'll keep messing around with the path to see if I can get it to work. Thanks for the help. |
I also just tested by referencing a private auditors directory that is not within my |
@0xdabbad00 should I be able to pass a relative subdirectory into |
Yes, that should work. |
Is there a way to have a directory of private auditors that lives outside of the parliament folder (I’m using parliament as a library)?
The parliament module name seems hard coded in the import path in policy.py line 267
Thanks for a great library!
The text was updated successfully, but these errors were encountered: