Add file path information output to hello.py

This commit is contained in:
2026-04-24 00:23:16 +08:00
parent 50d12922d1
commit ff22a17e34

View File

@@ -7,12 +7,16 @@
# [tool.uv.sources]
# py-common-lib = { git = "https://git.hatter.ink/hatter/py-common-lib.git", tag = "v0.0.0" }
# ///
from pathlib import Path
from py_common_lib import hello
def main() -> None:
print(hello())
print(f"Current file: {__file__}")
print(f"Parent file : {Path(__file__).parent}")
print(f".venv file : {Path(__file__).parent / '.venv'}")
if __name__ == "__main__":