Closed koba-e964 closed 2 years ago
I went through the document of imp.load_module
and found the following workaround:
name = 'onlinejudge.__about__'
location = 'onlinejudge/__about__.py'
spec = importlib.util.spec_from_file_location(name, location)
version = importlib.util.module_from_spec(spec)
spec.loader.exec_module(version)
It worked! Thank you!
Fixes #157.