@domdhi/claude-code-tts 1.3.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install.py +4 -0
- package/package.json +1 -1
package/install.py
CHANGED
|
@@ -183,6 +183,10 @@ def offer_kokoro():
|
|
|
183
183
|
def _hook_command(script_name):
|
|
184
184
|
"""Return the shell command string for a given hook script."""
|
|
185
185
|
path = os.path.join(INSTALL_DIR, script_name)
|
|
186
|
+
if sys.platform == 'win32':
|
|
187
|
+
# Claude Code runs hooks via bash — bash cannot resolve C:\...\python.exe as a command.
|
|
188
|
+
# Use 'python' (on PATH) instead of the full Windows executable path.
|
|
189
|
+
return f'python "{path}"'
|
|
186
190
|
return f'{sys.executable} "{path}"'
|
|
187
191
|
|
|
188
192
|
|