SF.net SVN: fclient: [614] trunk/fclient/src/fclient/lib/qt4ex/scripts/ pylupdate.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-13 14:16:07
|
Revision: 614
http://fclient.svn.sourceforge.net/fclient/?rev=614&view=rev
Author: jUrner
Date: 2008-07-13 07:16:17 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
adapt to PyQt4 change
Modified Paths:
--------------
trunk/fclient/src/fclient/lib/qt4ex/scripts/pylupdate.py
Modified: trunk/fclient/src/fclient/lib/qt4ex/scripts/pylupdate.py
===================================================================
--- trunk/fclient/src/fclient/lib/qt4ex/scripts/pylupdate.py 2008-07-13 14:15:14 UTC (rev 613)
+++ trunk/fclient/src/fclient/lib/qt4ex/scripts/pylupdate.py 2008-07-13 14:16:17 UTC (rev 614)
@@ -1,17 +1,18 @@
-"""Runs an update of language resources calling "pylupdate4"
+"""Runs an update of language resources calling "pylupdate"
"""
-import subprocess
+import subprocess, os
#*****************************************************************
#
#*****************************************************************
-def shell_exec(args):
+def shell_exec(args, cwd='.'):
p = subprocess.Popen(
args=args,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
+ cwd=cwd,
)
stdout, stderr = p.communicate()
if stdout: print stdout
@@ -23,7 +24,8 @@
"""
@param projectFile: *.pro
"""
- shell_exec('pylupdate4 "%s"' % projectFile)
+ d = os.path.dirname(projectFile)
+ shell_exec('pylupdate "%s"' % projectFile, cwd=d)
#*****************************************************************
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|