SF.net SVN: fclient: [616] trunk/fclient/src/fclient/lib/qt4ex/scripts/ update_project.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-13 14:17:15
|
Revision: 616
http://fclient.svn.sourceforge.net/fclient/?rev=616&view=rev
Author: jUrner
Date: 2008-07-13 07:17:18 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
lazy. add auto update project script
Added Paths:
-----------
trunk/fclient/src/fclient/lib/qt4ex/scripts/update_project.py
Added: trunk/fclient/src/fclient/lib/qt4ex/scripts/update_project.py
===================================================================
--- trunk/fclient/src/fclient/lib/qt4ex/scripts/update_project.py (rev 0)
+++ trunk/fclient/src/fclient/lib/qt4ex/scripts/update_project.py 2008-07-13 14:17:18 UTC (rev 616)
@@ -0,0 +1,27 @@
+"""Commandline script to update the project
+
+@note: the scrips assumes it is located in the 'scipts' subdirectory of the package
+@note: the script assumes pylupdate4 is installed
+"""
+from __future__ import absolute_import
+if __name__ == '__main__': # see --> http://bugs.python.org/issue1510172 . works only current dir and below
+ import os; __path__ = [os.path.dirname(__file__)]
+
+import os
+from . import qtpro, manifest, pylupdate
+#****************************************************************
+#
+#****************************************************************
+Locales = (
+ 'en',
+ 'de',
+ )
+
+#*****************************************************************
+#
+#*****************************************************************
+if __name__ == '__main__':
+ d = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+ ##manifest = manifest.createManifest(d)
+ pro = qtpro.createProjectFile(d, locales=Locales, prefix='qt4ex_')
+ pylupdate.main(pro)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|