Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/mpcresources/UpdatePOT.py')
-rw-r--r--src/mpc-hc/mpcresources/UpdatePOT.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mpc-hc/mpcresources/UpdatePOT.py b/src/mpc-hc/mpcresources/UpdatePOT.py
index b9c1e832b..928e20ae9 100644
--- a/src/mpc-hc/mpcresources/UpdatePOT.py
+++ b/src/mpc-hc/mpcresources/UpdatePOT.py
@@ -1,4 +1,4 @@
-# (C) 2013 see Authors.txt
+# (C) 2013, 2015 see Authors.txt
#
# This file is part of MPC-HC.
#
@@ -19,7 +19,8 @@ import sys
from TranslationDataRC import *
-if __name__ == '__main__':
+
+def UpdatePOT():
translationData = TranslationDataRC()
translationData.loadFromRC(r'..\mpc-hc.rc')
@@ -28,3 +29,6 @@ if __name__ == '__main__':
output = tuple(not b for b in translationData.areEqualsSections(translationDataOld))
translationData.writePO(r'PO\mpc-hc', 'pot', output)
+
+if __name__ == '__main__':
+ UpdatePOT()