Skip to content

Traceback only show "File <string>" in case an error happen in the dictionary #10

@user202729

Description

@user202729

This one isn't actually too difficult to implement, just use the importlib mechanism

		spec = importlib.util.spec_from_file_location(
				name=Path(filename).stem,
				location=filename)
		self.module = importlib.util.module_from_spec(spec)
		spec.loader.exec_module(self.module)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions