root/fedd/dump_abac_authorizer.py

Revision 2e46f353d96d1ce947d000777df24b61a7c487ea, 266 bytes (checked in by mikeryan <mikeryan@…>, 14 months ago)

switch to /usr/bin/env python to run python

  • Property mode set to 100755
Line 
1#!/usr/bin/env python
2
3import sys
4from federation.authorizer import abac_authorizer
5import ABAC
6
7if len(sys.argv) == 2 and sys.argv[1].strip() != '--help':
8    a = abac_authorizer(load=sys.argv[1])
9    print a
10else:
11    sys.exit("Usage: %s directory" % sys.argv[0])
Note: See TracBrowser for help on using the browser.