mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix bug #9235: LyX 2.2's tex2lyx fails in general on Windows
The reason being the backslashes in the path. Note that escaping does not work here because the path is being interpreted multiple times (how many times I don't know) and that would be fragile. For this same reason, the change is not limited to Windows.
This commit is contained in:
parent
11b7b7234e
commit
417c233d07
@ -727,10 +727,10 @@ def checkConverterEntries():
|
|||||||
# will also have this version suffix.
|
# will also have this version suffix.
|
||||||
# 4) Otherwise always use tex2lyx.
|
# 4) Otherwise always use tex2lyx.
|
||||||
in_binary_subdir = os.path.join(lyx_binary_dir, 'tex2lyx', 'tex2lyx')
|
in_binary_subdir = os.path.join(lyx_binary_dir, 'tex2lyx', 'tex2lyx')
|
||||||
in_binary_subdir = os.path.abspath(in_binary_subdir)
|
in_binary_subdir = os.path.abspath(in_binary_subdir).replace('\\', '/')
|
||||||
|
|
||||||
in_binary_dir = os.path.join(lyx_binary_dir, 'tex2lyx')
|
in_binary_dir = os.path.join(lyx_binary_dir, 'tex2lyx')
|
||||||
in_binary_dir = os.path.abspath(in_binary_dir)
|
in_binary_dir = os.path.abspath(in_binary_dir).replace('\\', '/')
|
||||||
|
|
||||||
path, t2l = checkProg('a LaTeX/Noweb -> LyX converter', [in_binary_subdir, in_binary_subdir + version_suffix, in_binary_dir, in_binary_dir + version_suffix, 'tex2lyx' + version_suffix, 'tex2lyx'],
|
path, t2l = checkProg('a LaTeX/Noweb -> LyX converter', [in_binary_subdir, in_binary_subdir + version_suffix, in_binary_dir, in_binary_dir + version_suffix, 'tex2lyx' + version_suffix, 'tex2lyx'],
|
||||||
rc_entry = [r'''\converter latex lyx "%% -f $$i $$o" ""
|
rc_entry = [r'''\converter latex lyx "%% -f $$i $$o" ""
|
||||||
|
Loading…
Reference in New Issue
Block a user