Skip to content

Commit

Permalink
🎨 add the default pandoc installation path to the environment variabl…
Browse files Browse the repository at this point in the history
…es for windows (#155)
  • Loading branch information
mokeyish authored Feb 2, 2024
1 parent a0128bd commit 05f5859
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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.
);
Expand Down

0 comments on commit 05f5859

Please sign in to comment.