mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-23 16:33:00 +02:00
Specify working directory for the serve-locally target
Meson doc says that run_targets are run in an unspecified directory.
This commit is contained in:
@@ -632,6 +632,7 @@ if host_platform == 'emscripten'
|
|||||||
command: [
|
command: [
|
||||||
python3_prog,
|
python3_prog,
|
||||||
serve_wasm_py,
|
serve_wasm_py,
|
||||||
|
'@BUILD_ROOT@',
|
||||||
],
|
],
|
||||||
depends: powder_exe,
|
depends: powder_exe,
|
||||||
)
|
)
|
||||||
|
@@ -7,6 +7,13 @@ import ssl
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
(
|
||||||
|
script,
|
||||||
|
build_root,
|
||||||
|
) = sys.argv
|
||||||
|
|
||||||
|
os.chdir(build_root)
|
||||||
|
|
||||||
HTTP_HOST = '127.0.0.1'
|
HTTP_HOST = '127.0.0.1'
|
||||||
HTTP_PORT = 8000
|
HTTP_PORT = 8000
|
||||||
HTTP_INDEX = 'serve-wasm.index.html'
|
HTTP_INDEX = 'serve-wasm.index.html'
|
||||||
|
Reference in New Issue
Block a user