diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-11-29 11:42:33 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-29 17:06:25 +0000 |
commit | 329c5a6d826b7b90e5e75ec0a7824c75ed5f8077 (patch) | |
tree | cdc91f8575ad0f6b210d3df484bacdf439320dec /gn/checkdir.py | |
parent | 19ea45ef538b0cbcd2088e85fa7e88384d6932e3 (diff) |
Bundle resources and skps directories into iOS app.
Will bundle resources/ for viewer (and skps/ if
that directory exists in the main Skia directory).
Also updates file code on iOS to fall back to bundle directory.
Docs-Preview: https://skia.org/?cl=76803
Bug: skia:7339
Change-Id: I244f67559c866451a6d02c3f1c4948d89457ec84
Reviewed-on: https://skia-review.googlesource.com/76803
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/checkdir.py')
-rw-r--r-- | gn/checkdir.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gn/checkdir.py b/gn/checkdir.py new file mode 100644 index 0000000000..4de7e80203 --- /dev/null +++ b/gn/checkdir.py @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# +# Copyright 2017 Google Inc. +# +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import os +import sys + +dirpath, = sys.argv[1:] + +print os.path.isdir(dirpath) + + |