mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-04 22:32:19 +00:00
fix error (unicodesymbols not found) when the working directory is not the script directory (solves compilation problems with SCons)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@27638 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cfb6b4483c
commit
b98bd2d8d0
@ -129,7 +129,7 @@ def set_option(document, m, option, value):
|
||||
|
||||
def read_unicodesymbols():
|
||||
" Read the unicodesymbols list of unicode characters and corresponding commands."
|
||||
pathname = os.path.abspath(os.path.dirname(sys.argv[0]))
|
||||
pathname = os.path.dirname(os.path.realpath(__file__))
|
||||
pathname = pathname.rstrip('lyx2lyx')
|
||||
# from within doc_toc.py, we are in lib/doc
|
||||
pathname = pathname.rstrip('doc')
|
||||
|
Loading…
Reference in New Issue
Block a user