feat: add sub package test

This commit is contained in:
2025-09-03 00:21:45 +08:00
parent a5fed6a5ef
commit b8120d6768
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
from .sub import sub_func
__all__ = ["sub_func"]
print("__sub_pacakge__.__init__")
+3
View File
@@ -0,0 +1,3 @@
def sub_func():
print("call: sub_func")
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env python3
import sub_package
if __name__ == "__main__":
sub_package.sub_func()