Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: tools/run_pub_get.py

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: address more comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
zra 2016/10/25 07:06:35 2016?
Vyacheslav Egorov (Google) 2016/10/26 10:45:17 Killed this file
3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file.
5
6 import os
7 import subprocess
8 import sys
9 import utils
10
11 def die(msg):
12 print msg
13 sys.exit(1)
14
15 def main():
16 if len(sys.argv) != 2:
17 die("Usage: %s <directory>" % sys.argv[0])
18
19 directory = os.path.abspath(sys.argv[1])
20
21 if not os.path.isdir(directory):
22 die("Directory '%s' does not exist!" % directory)
23
24 pub = os.path.join(utils.CheckedInSdkPath(), 'bin', 'pub')
25 subprocess.check_call([pub, 'get'], cwd=directory);
26
27 if __name__ == '__main__':
28 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698