ソースを参照

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

Mitchell Stokes 7 年 前
コミット
7073609480
1 ファイル変更2 行追加1 行削除
  1. 2 1
      tests/build_samples.py

+ 2 - 1
tests/build_samples.py

@@ -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()