Skip to content

Commit 7100f22

Browse files
committed
Update __init__.py
1 parent 65695cc commit 7100f22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

optillm/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from importlib import util
2+
import os
3+
4+
# Get the path to the root optillm.py
5+
spec = util.spec_from_file_location(
6+
"optillm.root",
7+
os.path.join(os.path.dirname(os.path.dirname(__file__)), "optillm.py")
8+
)
9+
module = util.module_from_spec(spec)
10+
spec.loader.exec_module(module)
11+
12+
# Export the main function
13+
main = module.main

0 commit comments

Comments
 (0)