Skip to content

Commit

Permalink
add windows specific call
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaileychess committed Oct 6, 2021
1 parent 2e32dd2 commit 1aab5af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/check_generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import platform
import subprocess
import sys
from pathlib import Path
Expand All @@ -39,7 +40,10 @@
subprocess.run(["git", "diff", "--binary", "--exit-code"], cwd=root_path)
sys.exit(result.returncode)

subprocess.run(["scripts/generate_code.py"], cwd=root_path)
if platform.system() == "Windows":
subprocess.run(["py", "scripts/generate_code.py"], cwd=root_path)
else:
subprocess.run(["scripts/generate_code.py"], cwd=root_path)

result = subprocess.run(["git", "diff", "--quiet"], cwd=root_path)

Expand Down

0 comments on commit 1aab5af

Please sign in to comment.