From becd62263fb16561ec79846f873a06569ee7d79f Mon Sep 17 00:00:00 2001 From: Ales Teska Date: Thu, 16 Aug 2018 10:38:08 +0200 Subject: [PATCH] Automatically create a directory when needed. --- itss.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/itss.py b/itss.py index 0e94390..d2e3420 100755 --- a/itss.py +++ b/itss.py @@ -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