Commits

Anonymous committed 2cb723c

0.12.1dev: Correctly handle an empty `[trac] backup_dir` option.

Closes #9556.

  • Participants
  • Parent commits 6ddcf04
  • Branches 0.12-stable

Comments (0)

Files changed (1)

         connector, args = self.get_connector()
         if not dest:
             backup_dir = self.backup_dir
-            if backup_dir[0] != "/":
+            if not os.path.isabs(backup_dir):
                 backup_dir = os.path.join(self.env.path, backup_dir)
             db_str = self.config.get('trac', 'database')
             db_name, db_path = db_str.split(":", 1)