def makeDirectoryFromAbsolutePath(absDirPath):
 assert os.path.isabs(absDirPath)
 try:
  os.makedirs(absDirPath)
 except OSError as e:
  if (e.errno != os.errno.EEXIST):
   raise
 return absDirPath

def makeDirectoryFromAbsolutePath ( absDirPath ) : assert os . path . isabs ( absDirPath ) try : os . makedirs ( absDirPath ) except OSError as e : if ( e . errno != os . errno . EEXIST ) : raise return absDirPath
makes directory for the given directory path with default permissions .