1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -24,7 +24,6 @@
[tool.poetry.dependencies]
python = "^3.8"
pyelftools = "^0.30"
-importlib-resources = "^6.1.0"
[tool.poetry.group.dev.dependencies]
black = "^23.7.0"
--- a/riscemu/riscemu_main.py
+++ b/riscemu/riscemu_main.py
@@ -3,7 +3,7 @@
from dataclasses import dataclass
from io import IOBase, RawIOBase, TextIOBase
from typing import Type, Dict, List, Optional, Union
-import importlib_resources
+import importlib.resources
from . import __version__, __copyright__
from .core import CPU, ProgramLoader, Program, UserModeCPU
@@ -206,7 +206,7 @@
"""
This adds the provided riscemu libc to the programs runtime.
"""
- for file in importlib_resources.files("riscemu.libc").iterdir():
+ for file in importlib.resources.files("riscemu.libc").iterdir():
if file.name.lower().endswith(".s"):
source = RiscemuSource(file.name, file.open("r"))
self.input_files.append(source)
|