Skip to content

Commit 839f7d3

Browse files
committed
resolve symlink
1 parent c655783 commit 839f7d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytinytex/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
from pathlib import Path
23
import sys
34
import os
45
import platform
@@ -92,6 +93,8 @@ def _run_tlmgr_command(args, path, machine_readable=True, interactive=False):
9293
if "--machine-readable" not in args:
9394
args.insert(0, "--machine-readable")
9495
tlmgr_executable = _get_file(path, "tlmgr")
96+
# resolve any symlinks
97+
tlmgr_executable = str(Path(tlmgr_executable).resolve(True))
9598
args.insert(0, tlmgr_executable)
9699
new_env = os.environ.copy()
97100
creation_flag = 0x08000000 if sys.platform == "win32" else 0 # set creation flag to not open TinyTeX in new console on windows

0 commit comments

Comments
 (0)