Skip to content

Commit a13bc7e

Browse files
authored
[emsymbolizer] Move emsymbolizer.py to tools/ (NFC) (#25187)
This way the functions can be possibly reused from files from `tools/`. Because we add it to https://github.com/emscripten-core/emscripten/blob/main/tools/maint/create_entry_points.py, users can access it from anywhere.
1 parent 78c6d44 commit a13bc7e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

emsymbolizer.py renamed to tools/emsymbolizer.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,16 @@
1616
import argparse
1717
from dataclasses import dataclass
1818
import json
19+
import os
1920
import re
2021
import subprocess
2122
import sys
2223
from typing import Optional
2324

25+
__scriptdir__ = os.path.dirname(os.path.abspath(__file__))
26+
__rootdir__ = os.path.dirname(__scriptdir__)
27+
sys.path.insert(0, __rootdir__)
28+
2429
from tools import shared
2530
from tools import webassembly
2631

tools/maint/create_entry_points.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
'emprofile': 'tools/emprofile',
5656
'emdwp': 'tools/emdwp',
5757
'emnm': 'tools/emnm',
58+
'emsymbolizer': 'tools/emsymbolizer',
5859
}
5960

6061

0 commit comments

Comments
 (0)