Changeset c573278 for fedd/init_abac_authorizer.py
- Timestamp:
- Nov 24, 2010 3:45:50 PM (13 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master
- Children:
- 725c55d
- Parents:
- de7cb08
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/init_abac_authorizer.py
rde7cb08 rc573278 2 2 3 3 import sys 4 import os, os.path 4 5 5 6 from optparse import OptionParser … … 21 22 parser.print_help() 22 23 sys.exit(1) 24 25 try: 26 for path, dirs, files in os.walk(opts.out_dir, topdown=False): 27 for f in files: os.unlink(os.path.join(path, f)) 28 for d in dirs: os.rmdir(os.path.join(path, d)) 29 except EnvironmentError, e: 30 sys.exit("Can't remove %s: %s" % ( e.filename, e.strerror)) 31 23 32 try: 24 33 a = abac_authorizer(key=opts.key, me=opts.cert, certs=opts.policy,
Note: See TracChangeset
for help on using the changeset viewer.