]> git.lyx.org Git - lyx.git/commitdiff
Fix the following problem with Python 2.4:
authorEnrico Forestieri <forenr@lyx.org>
Mon, 26 Sep 2011 15:57:17 +0000 (15:57 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 26 Sep 2011 15:57:17 +0000 (15:57 +0000)
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

lib/scripts/lyxpreview2bitmap.py

index 674c33e61112e6c7a171e39a72c28bea6c001c95..e7887b6a4a381c645f337047751cd701cf5fa8d2 100755 (executable)
@@ -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])