diff --git a/build/mac/make_locale_dirs.py b/build/mac/make_locale_dirs.py index 8559b4fdc460..a75d0735ad12 100644 --- a/build/mac/make_locale_dirs.py +++ b/build/mac/make_locale_dirs.py @@ -13,7 +13,14 @@ import sys def main(args): for dirname in args: - os.makedirs(dirname) + try: + os.makedirs(dirname) + except OSError as e: + if e.errno == os.errno.EEXIST: + # It's OK if it already exists + pass + else: + raise if __name__ == '__main__':