Fix bin/publish: use correct .env path for rspade_system Fix bin/publish script: prevent grep exit code 1 from terminating script 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
15 lines
425 B
TypeScript
Executable File
15 lines
425 B
TypeScript
Executable File
import * as vscode from 'vscode';
|
|
|
|
export function get_config() {
|
|
return vscode.workspace.getConfiguration('rspade');
|
|
}
|
|
|
|
export function get_python_command(): string {
|
|
const custom_path = get_config().get<string>('pythonPath');
|
|
if (custom_path && custom_path.trim() !== '') {
|
|
return custom_path;
|
|
}
|
|
|
|
// Default based on platform
|
|
return process.platform === 'win32' ? 'python' : 'python3';
|
|
} |