✨ Add file path information output to hello.py
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user