Skip to content

Commit

Permalink
fix tokens path resolution (real)
Browse files Browse the repository at this point in the history
  • Loading branch information
whisperdoll committed May 3, 2024
1 parent e17b4d7 commit 911a455
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ export function loadTokensFromSearchPaths(paths: string[]): { tokens: Record<Tok
paths.forEach((path) =>
{
path = npath.resolve(path);
const candidates = tryReadDir(path) || tryReadDir(npath.join(remote.app.getAppPath(), '../../', path));
const candidates = tryReadDir(path) ||
(process.platform === 'darwin' &&
tryReadDir(npath.join(remote.app.getAppPath(), '../../', path)));

if (!candidates) {
badPaths.push(path);
Expand Down

0 comments on commit 911a455

Please sign in to comment.