use vcsi in venv
This commit is contained in:
parent
b01c462582
commit
8a1597a6c8
@ -26,7 +26,7 @@ async function createThumbnail(helpers: Helpers, inputFilePath: string) {
|
|||||||
await preparePython()
|
await preparePython()
|
||||||
const outputFilePath = inputFilePath.replace(/\.[^/.]+$/, '') + '-thumb.png';
|
const outputFilePath = inputFilePath.replace(/\.[^/.]+$/, '') + '-thumb.png';
|
||||||
const spawn = await getNanoSpawn();
|
const spawn = await getNanoSpawn();
|
||||||
const result = await spawn('vcsi', [
|
const result = await spawn('./venv/bin/vcsi', [
|
||||||
inputFilePath,
|
inputFilePath,
|
||||||
'--metadata-position', 'hidden',
|
'--metadata-position', 'hidden',
|
||||||
'--metadata-margin', '0',
|
'--metadata-margin', '0',
|
||||||
@ -45,6 +45,7 @@ async function createThumbnail(helpers: Helpers, inputFilePath: string) {
|
|||||||
], {
|
], {
|
||||||
stdout: 'inherit',
|
stdout: 'inherit',
|
||||||
stderr: 'inherit',
|
stderr: 'inherit',
|
||||||
|
cwd: env.APP_DIR,
|
||||||
});
|
});
|
||||||
|
|
||||||
// const exitCode = await subprocess;
|
// const exitCode = await subprocess;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user