From: José Matox Date: Thu, 31 May 2007 12:02:47 +0000 (+0000) Subject: Add a fallback to run lyx2lyx from the build directory X-Git-Tag: 1.6.10~9550 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4f387b58a1341d65894165631b0e519f0f849b9a;p=features.git Add a fallback to run lyx2lyx from the build directory git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18590 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/LyX.py b/lib/lyx2lyx/LyX.py index 35d32ad73c..3974967cc5 100644 --- a/lib/lyx2lyx/LyX.py +++ b/lib/lyx2lyx/LyX.py @@ -26,8 +26,11 @@ import sys import re import time -import lyx2lyx_version -version_lyx2lyx = lyx2lyx_version.version +try: + import lyx2lyx_version + version_lyx2lyx = lyx2lyx_version.version +except: # we are running from build directory so assume the last version + version_lyx2lyx = '1.5.0svn' default_debug_level = 2