Fix the following problem with Python 2.4:

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
This commit is contained in:
Enrico Forestieri 2011-09-26 18:28:24 +00:00
parent 9c5a8a5baa
commit 6d99ecb8d9
2 changed files with 3 additions and 1 deletions

View File

@ -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])

View 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