Skip to content

Commit c25d266

Browse files
authored
Consistent use of relative imports. NFC (emscripten-core#19703)
1 parent b8b6819 commit c25d266

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.mypy.ini

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
mypy_path = third_party/,third_party/ply,third_party/websockify
33
files = .
44
exclude = (?x)(
5+
cache |
56
third_party |
67
conf\.py |
78
emrun\.py |

tools/minimal_runtime_shell.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
__rootdir__ = os.path.dirname(__scriptdir__)
88
sys.path.insert(0, __rootdir__)
99

10-
from tools import shared
11-
from tools import line_endings
12-
from tools import utils
13-
from tools.settings import settings
10+
from . import shared
11+
from . import line_endings
12+
from . import utils
13+
from .settings import settings
1414

1515
logger = logging.getLogger('minimal_runtime_shell')
1616

tools/system_libs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
from . import shared, building, utils
1818
from . import diagnostics
1919
from . import cache
20-
from tools.settings import settings
21-
from tools.utils import read_file
20+
from .settings import settings
21+
from .utils import read_file
2222

2323
logger = logging.getLogger('system_libs')
2424

0 commit comments

Comments
 (0)