Skip to content

Commit 3e52dcc

Browse files
authored
Fix windows .bat launchers (emscripten-core#10743)
The non-py version of these scripts were converted to shell scripts in emscripten-core#10729. The .bat files run python explicitly so can directly reference .py versions of these scripts. Also, move em-config to em-config.py to match all the others.
1 parent 6957e2d commit 3e52dcc

11 files changed

Lines changed: 12 additions & 12 deletions

File tree

em++.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\em++" %*
2+
python "%~dp0\em++.py" %*

em-config.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\em-config" %*
2+
python "%~dp0\em-config.py" %*

em-config renamed to em-config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
'''
1313

1414
from __future__ import print_function
15-
import os, sys, re
15+
import sys
16+
import re
1617
from tools import shared
1718

1819
if len(sys.argv) != 2 or \
@@ -22,4 +23,3 @@
2223
exit(1)
2324

2425
print(getattr(shared, sys.argv[1]))
25-

emar.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emar" %*
2+
python "%~dp0\emar.py" %*

emcc.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emcc" %*
2+
python "%~dp0\emcc.py" %*

emcmake.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emcmake" %*
2+
python "%~dp0\emcmake.py" %*

emconfigure.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emconfigure" %*
2+
python "%~dp0\emconfigure.py" %*

emmake.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emmake" %*
2+
python "%~dp0\emmake.py" %*

emranlib.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emranlib" %*
2+
python "%~dp0\emranlib.py" %*

emrun.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
@echo off
2-
python "%~dp0\emrun" %*
2+
python "%~dp0\emrun.py" %*

0 commit comments

Comments
 (0)