News for hackers. Stuff that matters.
Re:Python Is Not Java by arockwell on Wednesday February 25, 2009 @09:26PM (#495310)
Try JSON:

  { 
  "directories_to_backup": [
    {"directory_name": "/media/programming",
     "exclude_dirs": ["/media/programming/log_files",  
                      "/media/programming/temp_files" ]
    },
    {"directory_name": "/media/documents",
     "exclude_dirs": ["/media/documents/archive"]
    }
}

Also, why not just use a python data structure? Do you really need a plain text config file?

There are no comments on this comment yet.