(dirs)
| 9 | |
| 10 | # make sure all necessary dirs exist |
| 11 | def _get_dir(dirs): |
| 12 | for d in dirs: |
| 13 | this = os.path.abspath(os.path.join(os.path.curdir, d)) |
| 14 | if not os.path.exists(this): os.makedirs(this) |
| 15 | _get_dir([FLAGS.imgdir, FLAGS.binary, FLAGS.backup, |
| 16 | os.path.join(FLAGS.imgdir,'out'), FLAGS.summary]) |
| 17 |