TRiBByX
8/9/2018 - 9:37 AM

Generate a path for a class (or other)

A function that creates a path

def generate_path(self):
  path = '/path/'+self.object_specific_path
  if not os.path.exists(path):
      os.makedirs(path)
  return path