FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
emscripten/emscons at incoming · JavaScriptIOT/emscripten · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
JavaScriptIOT
/
emscripten
Public
forked from
emscripten-core/emscripten
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
emscripten
/
emscons
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (14 loc) · 570 Bytes
Breadcrumbs
emscripten
/
emscons
Copy path
File metadata and controls
executable file
·
20 lines (14 loc) · 570 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python2
'''
Wrapping the scons invocation, EMSCRIPTEN_TOOL_PATH is set in the process
environment, and can be used to locate the emscripten SCons Tool.
Example:
# Load emscripten Tool
my_env = Environment(tools=['emscripten'], toolpath=[os.environ['EMSCRIPTEN_TOOL_PATH']])
'''
import
os
,
subprocess
,
sys
from
tools
import
shared
tool_path
=
os
.
path
.
join
(
shared
.
path_from_root
(
'tools'
),
'scons'
,
'site_scons'
,
'site_tools'
,
'emscripten'
)
env
=
os
.
environ
.
copy
()
env
[
'EMSCRIPTEN_TOOL_PATH'
]
=
tool_path
exit
(
subprocess
.
call
(
sys
.
argv
[
1
:],
env
=
env
))
Back
|
FazBrowse Home
|
New Git URL