]> git.lyx.org Git - features.git/commitdiff
Fix the following problem with Python 2.4:
authorEnrico Forestieri <forenr@lyx.org>
Mon, 26 Sep 2011 18:28:24 +0000 (18:28 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 26 Sep 2011 18:28:24 +0000 (18:28 +0000)
Traceback (most recent call last):
  File "/opt/src/lyx-2.0.x/lib/scripts/lyxpreview2bitmap.py", line 416, in ?
    exit(main(sys.argv)[0])
TypeError: 'str' object is not callable

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39771 a592a061-630c-0410-9148-cb99ea01b6c8

lib/scripts/lyxpreview2bitmap.py
status.20x

index dbc5d566f6d73e9fcb58b5705dbf5c13adf81032..49a7521dd3c178249bdef92f1c7540cdb9d6c1b6 100755 (executable)
@@ -413,4 +413,4 @@ def main(argv):
     return (0, dvipng_metrics)
 
 if __name__ == "__main__":
-    exit(main(sys.argv)[0])
+    sys.exit(main(sys.argv)[0])
index b15e62f1aab0420182b1c11c735e530a6300e48c..70b335930f7822725379ac9ae7efe7f8af66c3a0 100644 (file)
@@ -131,6 +131,8 @@ What's new
 - Fix instant preview when external files are loaded in the preamble,
   e.g., through the \input LaTeX command.
 
+- Fix instant preview when using Python version 2.4 or lower.
+
 
 * ADVANCED FIND AND REPLACE