From 09ddb332d93c6fe30587d04166c332b60754b22c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 9 May 2017 23:35:23 +0530 Subject: [PATCH] ... --- .travis.yml | 2 +- setup/unix-ci.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d235123bf7..331195fc04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,4 +20,4 @@ matrix: before_install: - python setup/unix-ci.py install -script: $SW/bin/python setup/unix-ci.py test +script: python setup/unix-ci.py test diff --git a/setup/unix-ci.py b/setup/unix-ci.py index f544312f8e..708045eff6 100644 --- a/setup/unix-ci.py +++ b/setup/unix-ci.py @@ -44,6 +44,7 @@ def download_and_decompress(url, dest, compression=None): def main(): action = sys.argv[1] + python = os.path.join(os.environ['SW'], 'bin', 'python') if action == 'install': if isosx: os.makedirs(os.environ['SWBASE']) @@ -57,11 +58,11 @@ def main(): run('which rapydscript') run('rapydscript --version') - run(sys.executable, 'setup.py', 'bootstrap', '--ephemeral') + run(python, 'setup.py', 'bootstrap', '--ephemeral') elif action == 'test': if isosx: os.environ['SSL_CERT_FILE'] = os.path.abspath('resources/mozilla-ca-certs.pem') - run(sys.executable, 'setup.py', 'test') + run(python, 'setup.py', 'test') if __name__ == '__main__':