diff --git a/scripts/export-generated b/scripts/export-generated index 3b6088e42..7aa52eeca 100755 --- a/scripts/export-generated +++ b/scripts/export-generated @@ -1,11 +1,9 @@ -#! /usr/bin/env python +#!/usr/bin/env python2.7 from __future__ import absolute_import, division, print_function, unicode_literals import argparse import errno -import glob import os -import shutil import subprocess import sys diff --git a/stone.gradle b/stone.gradle index 24e3d59c3..f1758a9ef 100644 --- a/stone.gradle +++ b/stone.gradle @@ -44,7 +44,7 @@ def runStoneGenerator(StoneConfig config, if (config.dataTypesOnly) { project.exec { standardOutput = new FileOutputStream(logFile) - commandLine "python", "-m", "stone.cli" + commandLine "python2.7", "-m", "stone.cli" environment PYTHONPATH: stoneDir.absolutePath args "--clean-build" @@ -71,7 +71,7 @@ def runStoneGenerator(StoneConfig config, project.exec { standardOutput = new FileOutputStream(logFile, append) - commandLine "python", "-m", "stone.cli" + commandLine "python2.7", "-m", "stone.cli" environment PYTHONPATH: stoneDir.absolutePath if (isFirst) {