From 05f58591c335c6d363d2b9d00706903fd23fafe3 Mon Sep 17 00:00:00 2001 From: YISH Date: Fri, 2 Feb 2024 21:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20add=20the=20default=20pandoc=20i?= =?UTF-8?q?nstallation=20path=20to=20the=20environment=20variables=20for?= =?UTF-8?q?=20windows=20(#155)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/settings.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings.ts b/src/settings.ts index 0d0c83e..580486c 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -1,3 +1,4 @@ +import * as os from 'os'; import export_templates from './export_templates'; import { setPlatformValue, PlatformValue, renderTemplate, getPlatformValue } from './utils'; import type { PropertyGridMeta } from './ui/components/PropertyGrid'; @@ -117,6 +118,7 @@ export const DEFAULT_ENV = (() => { env, { 'TEXINPUTS': '${pluginDir}/textemplate/;', // Windows uses ; rather than : for appending + 'PATH': `${os.homedir()}AppData\\Local\\Pandoc\\:\${PATH}`, }, 'win32' // available for windows only. );