We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64354c5 commit 21df149Copy full SHA for 21df149
tests/utils/test_autotailor.py
@@ -0,0 +1,12 @@
1
+import importlib
2
+
3
4
+def import_arbitrary_file_as_module(path, module_name):
5
+ spec = importlib.util.spec_from_loader(
6
+ module_name, importlib.machinery.SourceFileLoader(module_name, path))
7
+ module = importlib.util.module_from_spec(spec)
8
+ spec.loader.exec_module(module)
9
+ return module
10
11
12
+autotailor = import_arbitrary_file_as_module("utils/autotailor", "autotailor")
0 commit comments