Skip to content

Commit c3c3bfb

Browse files
JonZeollaclaude
andcommitted
fix: add src contents and syspath to VERSION debug output
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 206f9b4 commit c3c3bfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

{{cookiecutter.project_name|replace(" ", "")}}/Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vars:
1616
RUN_SCRIPT: 'uv run --frozen'
1717
SCRIPTS_DIR: 'scripts'
1818
VERSION:
19-
sh: "{{ '{{.RUN_SCRIPT}}' }} python -c \"import sys,os;d=os.path.join(os.getcwd(),'src');print(f'DEBUG cwd={os.getcwd()} src_exists={os.path.isdir(d)}',file=sys.stderr);sys.path.insert(0,d);from {{ '{{.PROJECT_SLUG}}' }} import __version__;print(__version__)\""
19+
sh: "{{ '{{.RUN_SCRIPT}}' }} python -c \"import sys,os;d=os.path.join(os.getcwd(),'src');print(f'DEBUG cwd={os.getcwd()} src_contents={os.listdir(d)} syspath0={sys.path[:3]}',file=sys.stderr);sys.path.insert(0,d);from {{ '{{.PROJECT_SLUG}}' }} import __version__;print(__version__)\""
2020
LOCAL_PLATFORM:
2121
sh: "bash {{ '{{.SCRIPTS_DIR}}' }}/get_platform.sh"
2222
# Use PLATFORM if specified, otherwise use LOCAL_PLATFORM

0 commit comments

Comments
 (0)