diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-02 10:33:38 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-02 10:49:47 +0800 |
| commit | 37bbc0ccf6ca34c1163384742f172741a5322c75 (patch) | |
| tree | 77c6b9b03d895be51590f2c410582618b894f320 /.run/src/bin/python-script.py | |
feat: add cross-platform script runner with run.sh and run.ps1
Diffstat (limited to '.run/src/bin/python-script.py')
| -rw-r--r-- | .run/src/bin/python-script.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.run/src/bin/python-script.py b/.run/src/bin/python-script.py new file mode 100644 index 0000000..9f4ff7b --- /dev/null +++ b/.run/src/bin/python-script.py @@ -0,0 +1,11 @@ +import os +import sys + +print() +print(" Welcome to use `run.sh` / `run.ps1`") +print() +print(' > "Hello World"') +print(f' > cwd : "{os.getcwd()}"') +args = ", ".join(f'"{a}"' for a in sys.argv[1:]) +print(f" > args : {args}") +print() |
