| Index: tools/cr/cr/actions/gn.py
|
| diff --git a/tools/cr/cr/actions/gn.py b/tools/cr/cr/actions/gn.py
|
| index a79aa81fc24d2a6aded7fe8ab7577363d2909b7d..fcd40c766aa72c21ccc4e19b73962b32a053a7a2 100644
|
| --- a/tools/cr/cr/actions/gn.py
|
| +++ b/tools/cr/cr/actions/gn.py
|
| @@ -78,6 +78,11 @@ class GnPrepareOut(cr.PrepareOut):
|
| for key, value in args.items():
|
| arg_lines.append('%s = %s' % (key, value))
|
|
|
| + try:
|
| + os.makedirs(out_path)
|
| + except OSError:
|
| + if not os.path.isdir(out_path):
|
| + raise
|
| with open(args_file, 'w') as f:
|
| f.write('\n'.join(arg_lines) + '\n')
|
|
|
|
|