Esempio n. 1
0
 def base_dir(self):
     base = self.options.output_dir
     if base is None:
         base = CONFIG.get('sqlobject_history_dir', '.')
     if not os.path.exists(base):
         print 'Creating history directory %s' % self.shorten_filename(base)
         if not self.options.simulate:
             os.makedirs(base)
     return base