OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 | 2 |
3 # Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 3 # Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 | 6 |
7 import sys | 7 import sys |
8 import utils | 8 import utils |
9 import subprocess | 9 import subprocess |
10 | 10 |
11 def Main(): | 11 def Main(): |
12 with utils.ChangedWorkingDirectory(sys.argv[1]): | 12 with utils.ChangedWorkingDirectory(sys.argv[1]): |
13 subprocess.check_call(sys.argv[2:]) | 13 subprocess.check_call(sys.argv[2:]) |
14 | 14 |
15 if __name__ == '__main__': | 15 if __name__ == '__main__': |
16 Main() | 16 Main() |
OLD | NEW |