Skip to content

Commit

Permalink
Remove python option from the command.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Oct 23, 2024
1 parent 86012e3 commit 1a7e37f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/seed_tools/commands/compare_python_gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ export default function createCommand() {
.description(
'Run python and typescript seed generators and compare results',
)
.option('--python <value>', 'Path to python executable', 'python3')
.action(main);
}

interface Options {
python: string;
}

async function main(options: Options) {
async function main() {
const tempDir = await fs.mkdtemp(path.join(os.tmpdir(), 'seed-compare-'));
const mockSerialNumber = 'mock_serial_number';

Expand All @@ -41,7 +36,7 @@ async function main(options: Options) {

// Run Python seed generator
execSync(
`${options.python} ./seed/serialize.py ./seed/seed.json --mock_serial_number ${mockSerialNumber}`,
`python3 ./seed/serialize.py ./seed/seed.json --mock_serial_number ${mockSerialNumber}`,
{
stdio: 'inherit',
},
Expand Down

0 comments on commit 1a7e37f

Please sign in to comment.