Skip to content

Commit

Permalink
run_all.py: create raw directory
Browse files Browse the repository at this point in the history
Summary: RAW directory was not created automatically when "save_raw" was enabled.

Reviewed By: fbriggs

Differential Revision: D4763028

fbshipit-source-id: c1782cfe7bf57ff1f4855580631369b378536f8f
  • Loading branch information
aparrapo authored and facebook-github-bot committed Mar 23, 2017
1 parent 5e3b31a commit daab454
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions surround360_render/scripts/run_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def list_only_files(src_dir): return filter(lambda f: f[0] != ".", [f for f in l
unpack_extra_params = ""
if save_raw:
raw_dir = dest_dir + "/raw"
os.system("mkdir -p " + raw_dir)
unpack_extra_params += " --output_raw_dir " + raw_dir
if os.path.isdir(raw_dir) and len([f for f in os.listdir(raw_dir) if not f.startswith('.')]) > 0:
print "ERROR: raw directory not empty!\n"
Expand Down

0 comments on commit daab454

Please sign in to comment.