Skip to content

Commit

Permalink
Automatically create a directory when needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ateska committed Aug 16, 2018
1 parent 681d72d commit becd622
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions itss.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def __init__(self, directory, ea_url, aa_url):
self.EC = None # Enrollment credentials
self.AT = None # Authorization ticket

if not os.path.isdir(directory):
os.mkdir(directory)
self.Directory = directory

self.AA_url = aa_url
self.EA_url = ea_url

Expand Down

0 comments on commit becd622

Please sign in to comment.