summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xitstool.in15
1 files changed, 8 insertions, 7 deletions
diff --git a/itstool.in b/itstool.in
index 395fddf..c21ad4b 100755
--- a/itstool.in
+++ b/itstool.in
@@ -1495,7 +1495,8 @@ def convert_locale (locale):
return ret
-def main():
+#def main():
+if __name__ == '__main__':
options = optparse.OptionParser()
options.set_usage('\n itstool [OPTIONS] [XMLFILES]\n' +
' itstool -m <MOFILE> [OPTIONS] [XMLFILES]\n' +
@@ -1682,9 +1683,9 @@ def main():
out.write(serialized)
out.flush()
-if __name__ == '__main__':
- if os.getenv('ITSTOOL_PROFILE') is not None:
- import cProfile
- cProfile.run('main()')
- else:
- main()
+#if __name__ == '__main__':
+# if os.getenv('ITSTOOL_PROFILE') is not None:
+# import cProfile
+# cProfile.run('main()')
+# else:
+# main()