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. );