|
|
@ -1,4 +1,4 @@
|
|
|
|
#!/usr/bin/env python
|
|
|
|
#!/usr/bin/env vpython
|
|
|
|
# Copyright 2018 The Chromium Authors. All rights reserved.
|
|
|
|
# Copyright 2018 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
# found in the LICENSE file.
|
|
|
@ -6,11 +6,11 @@
|
|
|
|
from __future__ import print_function
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
|
|
|
|
|
|
|
|
import ninjalog_uploader
|
|
|
|
import ninjalog_uploader
|
|
|
|
|
|
|
|
import subprocess2
|
|
|
|
|
|
|
|
|
|
|
|
THIS_DIR = os.path.dirname(__file__)
|
|
|
|
THIS_DIR = os.path.dirname(__file__)
|
|
|
|
UPLOADER = os.path.join(THIS_DIR, 'ninjalog_uploader.py')
|
|
|
|
UPLOADER = os.path.join(THIS_DIR, 'ninjalog_uploader.py')
|
|
|
@ -110,8 +110,8 @@ def main():
|
|
|
|
|
|
|
|
|
|
|
|
# Run upload script without wait.
|
|
|
|
# Run upload script without wait.
|
|
|
|
devnull = open(os.devnull, "w")
|
|
|
|
devnull = open(os.devnull, "w")
|
|
|
|
subprocess.Popen([sys.executable, UPLOADER] + sys.argv[1:],
|
|
|
|
subprocess2.Popen(['vpython', UPLOADER] + sys.argv[1:],
|
|
|
|
stdout=devnull, stderr=devnull)
|
|
|
|
stdout=devnull, stderr=devnull)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
if __name__ == '__main__':
|
|
|
|