Skip to content

1.6.0

Compare
Choose a tag to compare
@hiroki0525 hiroki0525 released this 06 Jun 02:35
· 27 commits to master since this release
aa8c563

You can add global setting to ModuleLoader.

import os
from autoload import ModuleLoader

# global setting
ModuleLoader.set_setting(base_path=os.getcwd(), strict=True)

loader_a = ModuleLoader()
loader_b = ModuleLoader()

print(loader_a.base_path)
# -> /Users/user1/abc
print(loader_a.strict)
# -> True
print(loader_b.base_path)
# -> /Users/user1/abc
print(loader_b.strict)
# -> True