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:
Joost Verburg 2008-11-19 11:20:22 +00:00
parent cfb6b4483c
commit b98bd2d8d0

View File

@ -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')