-#! /usr/bin/env python -tt
-# -*- coding: iso-8859-1 -*-
-# Copyright (C) 2004 José Matos <jamatos@lyx.org>
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+# Copyright (C) 2004 José Matos <jamatos@lyx.org>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
./profiling.py -ou.lyx ../doc/UserGuide.lyx
"""
-def main(argv):
+def main():
# This will only work with python >= 2.2, the version where this module was added
prof = hotshot.Profile("lyx2lyx.prof") # Use temporary file, here?
- benchtime = prof.runcall(
- lambda : lyx2lyx.main(argv))
+ benchtime = prof.runcall(lyx2lyx.main)
prof.close()
# After the tests, show the profile analysis.
if __name__ == "__main__":
- main(sys.argv)
+ main()