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
This commit is contained in:
Enrico Forestieri 2011-09-26 15:57:17 +00:00
parent cf4ddb2ed5
commit 968ab69e88

View File

@ -532,4 +532,4 @@ def main(argv):
return (0, dvipng_metrics) return (0, dvipng_metrics)
if __name__ == "__main__": if __name__ == "__main__":
exit(main(sys.argv)[0]) sys.exit(main(sys.argv)[0])