From 4f387b58a1341d65894165631b0e519f0f849b9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Matox?= Date: Thu, 31 May 2007 12:02:47 +0000 Subject: [PATCH] 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 --- lib/lyx2lyx/LyX.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2