deploy-ng: Use sys.executable instead of 'python' in tests/build_samples.py

This commit is contained in:
Mitchell Stokes 2018-05-06 10:25:32 -07:00
parent 7eeb416765
commit 7073609480

View File

@ -1,5 +1,6 @@
import os
import subprocess
import sys
SAMPLES_TO_BUILD = [
'asteroids',
@ -13,7 +14,7 @@ def main():
# This will raise a CalledProcessError if the build fails, which will cause
# this script to fail
subprocess.check_call(['python', 'setup.py', 'bdist_apps'])
subprocess.check_call([sys.executable, 'setup.py', 'bdist_apps'])
if __name__ == '__main__':
main()