summaryrefslogtreecommitdiff
path: root/extra/kdesdk-lokalize/fix-python2-path.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-20 02:15:20 -0700
committerroot <root@rshg054.dnsready.net>2013-08-20 02:15:20 -0700
commit1ae31a85e191bbf7313077b472a66d1c24af1f74 (patch)
tree91f021858c2e33e1a6633c12b80e54105fd7500b /extra/kdesdk-lokalize/fix-python2-path.patch
parent26606f981048ee9efcda690b619d3c53501a7a58 (diff)
Tue Aug 20 02:14:51 PDT 2013
Diffstat (limited to 'extra/kdesdk-lokalize/fix-python2-path.patch')
-rw-r--r--extra/kdesdk-lokalize/fix-python2-path.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/extra/kdesdk-lokalize/fix-python2-path.patch b/extra/kdesdk-lokalize/fix-python2-path.patch
new file mode 100644
index 000000000..9e9a442c0
--- /dev/null
+++ b/extra/kdesdk-lokalize/fix-python2-path.patch
@@ -0,0 +1,22 @@
+--- kdesdk-4.5.80/lokalize/scripts/msgmerge.py~ 2010-11-24 11:22:42.120000002 +0100
++++ kdesdk-4.5.80/lokalize/scripts/msgmerge.py 2010-11-24 11:22:42.146666670 +0100
+@@ -114,7 +114,7 @@
+ print >>sys.stderr, "Execution failed:", e
+
+ cmd='%s/odf/xliffmerge.py -i %s -t %s -o %s' % (ourPath,xliffpathname,xlifftemplatepathname,xliffpathname)
+- if os.name!='nt': cmd='python '+cmd
++ if os.name!='nt': cmd='python2 '+cmd
+ else: cmd=cmd.replace('/','\\')
+ os.system(cmd)
+
+--- kdesdk-4.5.80/lokalize/scripts/xliff2odf.py~ 2010-11-24 11:24:10.853333336 +0100
++++ kdesdk-4.5.80/lokalize/scripts/xliff2odf.py 2010-11-24 11:24:10.883333336 +0100
+@@ -42,7 +42,7 @@
+ xliff2odf.convertxliff(xliffinput, translatedodfpathname, odf)
+
+ ourpath=([p for p in sys.path if os.path.exists(p+'/xliff2odf.py')]+[''])[0]
+- os.system('python "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
++ os.system('python2 "'+ourpath+'/xliff2odf-standalone.py" "%s" "%s" &'%(translatedodfpathname, Editor.currentEntryId()))
+
+ try: convert()
+ except: print 'error occured'