From: Enrico Forestieri Date: Mon, 26 Sep 2011 15:57:17 +0000 (+0000) Subject: Fix the following problem with Python 2.4: X-Git-Tag: 2.1.0beta1~2648 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=968ab69e8866ae4451055e9cc5809dc7f9627ef4;p=lyx.git Fix the following problem with Python 2.4: Traceback (most recent call last): File "/opt/src/lyx-devel/lib/scripts/lyxpreview2bitmap.py", line 535, in ? exit(main(sys.argv)[0]) TypeError: 'str' object is not callable git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39769 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/scripts/lyxpreview2bitmap.py b/lib/scripts/lyxpreview2bitmap.py index 674c33e611..e7887b6a4a 100755 --- a/lib/scripts/lyxpreview2bitmap.py +++ b/lib/scripts/lyxpreview2bitmap.py @@ -532,4 +532,4 @@ def main(argv): return (0, dvipng_metrics) if __name__ == "__main__": - exit(main(sys.argv)[0]) + sys.exit(main(sys.argv)[0])