mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #10218, in a way less invasive than it has been fixed in
master. Patch due to Enrico.
This commit is contained in:
parent
0ba875add1
commit
b593ba5b48
@ -1154,8 +1154,7 @@ def convert_origin(document):
|
||||
origin = document.dir.replace('\\', '/') + '/'
|
||||
else:
|
||||
origin = os.path.join("/systemlyxdir", relpath).replace('\\', '/') + '/'
|
||||
if os.name != 'nt':
|
||||
origin = unicode(origin, sys.getfilesystemencoding())
|
||||
origin = unicode(origin, sys.getfilesystemencoding())
|
||||
document.header[i:i] = ["\\origin " + origin]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user